C# Class Brunet.Messaging.UnicastSender

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

Public Properties

Property Type Description
EndPoint System.Net.EndPoint

Protected Properties

Property Type Description
_s Socket

Public Methods

Method 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 method

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

GetHashCode() public method

Uses the EndPoints HashCode.
public GetHashCode ( ) : int
return int

Send() public method

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

ToString() public method

public ToString ( ) : string
return string

ToUri() public method

public ToUri ( ) : string
return string

UnicastSender() public method

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.
return System

Property Details

EndPoint public property

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

_s protected property

The socket to send the data on.
protected Socket _s
return Socket