C# Class BeardedManStudios.Network.CachedUdpClient

Inheritance: IDisposable
Datei anzeigen Open project: drakelinglabs/unityarmada Class Usage Examples

Public Methods

Method Description
BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
BeginSend ( byte datagram, int bytes, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginSend ( byte datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginSend ( byte datagram, int bytes, string hostname, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
CachedUdpClient ( ) : System
CachedUdpClient ( AddressFamily family ) : System
CachedUdpClient ( IPEndPoint localEP ) : System
CachedUdpClient ( Socket targetSocket ) : System
CachedUdpClient ( int port ) : System
CachedUdpClient ( int port, AddressFamily family ) : System
CachedUdpClient ( string hostname, int port ) : System
Close ( ) : void
Connect ( IPAddress addr, int port ) : void
Connect ( IPEndPoint endPoint ) : void
Connect ( string hostname, int port ) : void
DoConnect ( IPEndPoint endPoint ) : void
DropMulticastGroup ( IPAddress multicastAddr ) : void
DropMulticastGroup ( IPAddress multicastAddr, int ifindex ) : void
EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
EndSend ( IAsyncResult asyncResult ) : int
IDisposable ( ) : void
JoinMulticastGroup ( IPAddress multicastAddr ) : void
JoinMulticastGroup ( IPAddress multicastAddr, IPAddress localAddress ) : void
JoinMulticastGroup ( IPAddress multicastAddr, int timeToLive ) : void
JoinMulticastGroup ( int ifindex, IPAddress multicastAddr ) : void
Receive ( IPEndPoint &remoteEP, string &endpoint ) : BMSByte
ReceiveAsync ( ) : Task
Send ( byte dgram, int bytes ) : int
Send ( byte dgram, int bytes, IPEndPoint endPoint ) : int
Send ( byte dgram, int bytes, string hostname, int port ) : int
SendAsync ( byte datagram, int bytes ) : Task
SendAsync ( byte datagram, int bytes, IPEndPoint endPoint ) : Task
SendAsync ( byte datagram, int bytes, string hostname, int port ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckDisposed ( ) : void
CutArray ( byte orig, int length ) : byte[]
DoBeginSend ( byte datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state ) : IAsyncResult
DoSend ( byte dgram, int bytes, IPEndPoint endPoint ) : int
InitSocket ( EndPoint localEP ) : void

Method Details

BeginReceive() public method

public BeginReceive ( AsyncCallback requestCallback, object state ) : IAsyncResult
requestCallback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte datagram, int bytes, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
requestCallback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
endPoint System.Net.IPEndPoint
requestCallback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte datagram, int bytes, string hostname, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
datagram byte
bytes int
hostname string
port int
requestCallback AsyncCallback
state object
return IAsyncResult

CachedUdpClient() public method

public CachedUdpClient ( ) : System
return System

CachedUdpClient() public method

public CachedUdpClient ( AddressFamily family ) : System
family AddressFamily
return System

CachedUdpClient() public method

public CachedUdpClient ( IPEndPoint localEP ) : System
localEP System.Net.IPEndPoint
return System

CachedUdpClient() public method

public CachedUdpClient ( Socket targetSocket ) : System
targetSocket Socket
return System

CachedUdpClient() public method

public CachedUdpClient ( int port ) : System
port int
return System

CachedUdpClient() public method

public CachedUdpClient ( int port, AddressFamily family ) : System
port int
family AddressFamily
return System

CachedUdpClient() public method

public CachedUdpClient ( string hostname, int port ) : System
hostname string
port int
return System

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( IPAddress addr, int port ) : void
addr System.Net.IPAddress
port int
return void

Connect() public method

public Connect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint
return void

Connect() public method

public Connect ( string hostname, int port ) : void
hostname string
port int
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DoConnect() public method

public DoConnect ( IPEndPoint endPoint ) : void
endPoint System.Net.IPEndPoint
return void

DropMulticastGroup() public method

public DropMulticastGroup ( IPAddress multicastAddr ) : void
multicastAddr System.Net.IPAddress
return void

DropMulticastGroup() public method

public DropMulticastGroup ( IPAddress multicastAddr, int ifindex ) : void
multicastAddr System.Net.IPAddress
ifindex int
return void

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult, IPEndPoint &remoteEP ) : byte[]
asyncResult IAsyncResult
remoteEP System.Net.IPEndPoint
return byte[]

EndSend() public method

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

IDisposable() public method

public IDisposable ( ) : void
return void

JoinMulticastGroup() public method

public JoinMulticastGroup ( IPAddress multicastAddr ) : void
multicastAddr System.Net.IPAddress
return void

JoinMulticastGroup() public method

public JoinMulticastGroup ( IPAddress multicastAddr, IPAddress localAddress ) : void
multicastAddr System.Net.IPAddress
localAddress System.Net.IPAddress
return void

JoinMulticastGroup() public method

public JoinMulticastGroup ( IPAddress multicastAddr, int timeToLive ) : void
multicastAddr System.Net.IPAddress
timeToLive int
return void

JoinMulticastGroup() public method

public JoinMulticastGroup ( int ifindex, IPAddress multicastAddr ) : void
ifindex int
multicastAddr System.Net.IPAddress
return void

Receive() public method

public Receive ( IPEndPoint &remoteEP, string &endpoint ) : BMSByte
remoteEP System.Net.IPEndPoint
endpoint string
return BMSByte

ReceiveAsync() public method

public ReceiveAsync ( ) : Task
return Task

Send() public method

public Send ( byte dgram, int bytes ) : int
dgram byte
bytes int
return int

Send() public method

public Send ( byte dgram, int bytes, IPEndPoint endPoint ) : int
dgram byte
bytes int
endPoint System.Net.IPEndPoint
return int

Send() public method

public Send ( byte dgram, int bytes, string hostname, int port ) : int
dgram byte
bytes int
hostname string
port int
return int

SendAsync() public method

public SendAsync ( byte datagram, int bytes ) : Task
datagram byte
bytes int
return Task

SendAsync() public method

public SendAsync ( byte datagram, int bytes, IPEndPoint endPoint ) : Task
datagram byte
bytes int
endPoint System.Net.IPEndPoint
return Task

SendAsync() public method

public SendAsync ( byte datagram, int bytes, string hostname, int port ) : Task
datagram byte
bytes int
hostname string
port int
return Task