C# 클래스 Brunet.Messaging.UnicastSender

Provides a method of sending data over IPHandler's unicast socket.
상속: ISender
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EndPoint System.Net.EndPoint

보호된 프로퍼티들

프로퍼티 타입 설명
_s Socket

공개 메소드들

메소드 설명
Equals ( object o ) : bool

ISender objects need to have semantically meaningful Equals.

GetHashCode ( ) : int

Uses the EndPoints HashCode.

Send ( ICopyable data ) : void

Sends the data over the unicast socket.

ToString ( ) : string
ToUri ( ) : string
UnicastSender ( Socket s, EndPoint ep ) : System

Creates a new unicast sender that will send over the provided socket to the specified endpoint.

메소드 상세

Equals() 공개 메소드

ISender objects need to have semantically meaningful Equals.
public Equals ( object o ) : bool
o object The object to compare to.
리턴 bool

GetHashCode() 공개 메소드

Uses the EndPoints HashCode.
public GetHashCode ( ) : int
리턴 int

Send() 공개 메소드

Sends the data over the unicast socket.
public Send ( ICopyable data ) : void
data ICopyable
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToUri() 공개 메소드

public ToUri ( ) : string
리턴 string

UnicastSender() 공개 메소드

Creates a new unicast sender that will send over the provided socket to the specified endpoint.
public UnicastSender ( Socket s, EndPoint ep ) : System
s Socket The socket to use in sending.
ep System.Net.EndPoint The remote end point to send to.
리턴 System

프로퍼티 상세

EndPoint 공개적으로 프로퍼티

The remote end point to send to.
public EndPoint,System.Net EndPoint
리턴 System.Net.EndPoint

_s 보호되어 있는 프로퍼티

The socket to send the data on.
protected Socket _s
리턴 Socket