C# Class Brunet.Messaging.UnicastSender

Provides a method of sending data over IPHandler's unicast socket.
Inheritance: ISender
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
EndPoint System.Net.EndPoint

Protected Properties

Свойство Type Description
_s Socket

Méthodes publiques

Méthode Description
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.

Method Details

Equals() public méthode

ISender objects need to have semantically meaningful Equals.
public Equals ( object o ) : bool
o object The object to compare to.
Résultat bool

GetHashCode() public méthode

Uses the EndPoints HashCode.
public GetHashCode ( ) : int
Résultat int

Send() public méthode

Sends the data over the unicast socket.
public Send ( ICopyable data ) : void
data ICopyable
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

ToUri() public méthode

public ToUri ( ) : string
Résultat string

UnicastSender() public méthode

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.
Résultat System

Property Details

EndPoint public_oe property

The remote end point to send to.
public EndPoint,System.Net EndPoint
Résultat System.Net.EndPoint

_s protected_oe property

The socket to send the data on.
protected Socket _s
Résultat Socket