|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Represents a TCP connection
Field Summary | |
---|---|
System.Net.Sockets.Socket | socket |
System.Net.Sockets.NetworkStream | stream |
Constructor Summary | |
---|---|
TcpConnection() Constructor |
|
TcpConnection(System.Net.Sockets.Socket clientsocket) Constructor |
Property Summary | |
---|---|
bool |
Connected
Has a connection been established ? |
System.Net.IPEndPoint |
LocalEndPoint
The local endpoint |
System.Net.IPEndPoint |
RemoteEndPoint
Get the remote endpoint |
Method Summary | |
---|---|
void |
Close() Close the connection |
void |
Connect(System.Net.IPEndPoint endpoint) Connect to a remote endpoint |
System.Net.Sockets.NetworkStream |
GetStream() Get the network stream for the connection |
void |
Receive(byte[] data) Receive data |
void |
Send(byte[] data) Send data |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
protected System.Net.Sockets.Socket socket
protected System.Net.Sockets.NetworkStream stream
Constructor Detail |
---|
public TcpConnection()
Constructor
public TcpConnection(System.Net.Sockets.Socket clientsocket)
Constructor
Property Detail |
---|
public bool Connected
Has a connection been established ?
public System.Net.IPEndPoint LocalEndPoint
The local endpoint
public System.Net.IPEndPoint RemoteEndPoint
Get the remote endpoint
Method Detail |
---|
public void Close()
Close the connection
public void Connect(System.Net.IPEndPoint endpoint)
Connect to a remote endpoint
public System.Net.Sockets.NetworkStream GetStream()
Get the network stream for the connection
public void Receive(byte[] data)
Receive data
public void Send(byte[] data)
Send data
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |