|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
A sublcass of System.Net.TcpListener that provides asynchronous methods.
Field Summary | |
---|---|
NetSamples.Common.Net.TcpAsyncListener.AcceptSocketDelegate | acceptSocket |
NetSamples.Common.Net.TcpAsyncListener.AcceptTcpClientDelegate | acceptTcpClient |
Constructor Summary | |
---|---|
TcpAsyncListener(int port) Constructor. |
|
TcpAsyncListener(System.Net.IPEndPoint endpoint) Constructor. |
|
TcpAsyncListener(System.Net.IPAddress address, int port) Constructor. |
Property Summary | |
---|---|
System.Net.IPEndPoint |
LocalEndPoint
The local endpoint |
Properties inherited from class System.Net.Sockets.TcpListener |
---|
Active, LocalEndpoint, Server |
Method Summary | |
---|---|
System.IAsyncResult |
BeginAcceptSocket(System.AsyncCallback callback, object state) Start an AcceptSocket operation |
System.IAsyncResult |
BeginAcceptTcpClient(System.AsyncCallback callback, object state) Start an AcceptTcpClient operation |
System.Net.Sockets.Socket |
EndAcceptSocket(System.IAsyncResult result) End an AcceptSocket operation |
System.Net.Sockets.TcpClient |
EndAcceptTcpClient(System.IAsyncResult result) End an AcceptTcpClient operation |
Methods inherited from class System.Net.Sockets.TcpListener |
---|
AcceptSocket, AcceptTcpClient, Finalize, Pending, Start, Stop |
Methods inherited from class System.Object |
---|
Equals, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
private NetSamples.Common.Net.TcpAsyncListener.AcceptSocketDelegate acceptSocket
private NetSamples.Common.Net.TcpAsyncListener.AcceptTcpClientDelegate acceptTcpClient
Constructor Detail |
---|
public TcpAsyncListener(int port)
Constructor.
public TcpAsyncListener(System.Net.IPEndPoint endpoint)
Constructor.
public TcpAsyncListener(System.Net.IPAddress address, int port)
Constructor.
Property Detail |
---|
public System.Net.IPEndPoint LocalEndPoint
The local endpoint
Method Detail |
---|
public System.IAsyncResult BeginAcceptSocket(System.AsyncCallback callback, object state)
Start an AcceptSocket operation
public System.IAsyncResult BeginAcceptTcpClient(System.AsyncCallback callback, object state)
Start an AcceptTcpClient operation
public System.Net.Sockets.Socket EndAcceptSocket(System.IAsyncResult result)
End an AcceptSocket operation
public System.Net.Sockets.TcpClient EndAcceptTcpClient(System.IAsyncResult result)
End an AcceptTcpClient operation
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |