TcpSocket Class

Represents a synchronous reliable connection-oriented socket.

Definition

Line 27 of System.Net.Sockets/TcpSocket.cm

Constructors & Destructor

public TcpSocket()
public nothrow TcpSocket(TcpSocket&& that)
public TcpSocket(const String<char>& node, const String<char>& service)
public TcpSocket(const String<char>& node, const String<char>& service, ConnectOptions options)
suppress TcpSocket(const TcpSocket&)
public nothrow TcpSocket(void* handle_)
public ~TcpSocket()

Member Functions

public TcpSocket Accept()
public void Bind(int port)
public void Close()
public void Connect(const String<char>& node, const String<char>& service)
public void Connect(const String<char>& node, const String<char>& service, ConnectOptions options)
public void Listen(int backLog)
public int Receive(byte* buffer, int count)
public int Send(byte* buffer, int count)
public void Shutdown(ShutdownMode mode)
public nothrow void operator=(TcpSocket&& that)
suppress void operator=(const TcpSocket&)

Member Variables

private bool connected
private void* handle
private bool shutdown

Constructor& Destructor Details

TcpSocket Constructor

public TcpSocket()

Definition
Line 29 of System.Net.Sockets/TcpSocket.cm


TcpSocket Constructor

public nothrow TcpSocket(TcpSocket&& that)

Definition
Line 63 of System.Net.Sockets/TcpSocket.cm


TcpSocket Constructor

public TcpSocket(const String<char>& node, const String<char>& service)

Definition
Line 55 of System.Net.Sockets/TcpSocket.cm


TcpSocket Constructor

public TcpSocket(const String<char>& node, const String<char>& service, ConnectOptions options)

Definition
Line 40 of System.Net.Sockets/TcpSocket.cm


TcpSocket Constructor

suppress TcpSocket(const TcpSocket&)

Definition
Line 61 of System.Net.Sockets/TcpSocket.cm


TcpSocket Constructor

public nothrow TcpSocket(void* handle_)

Definition
Line 58 of System.Net.Sockets/TcpSocket.cm


~TcpSocket Destructor

public ~TcpSocket()

Definition
Line 75 of System.Net.Sockets/TcpSocket.cm


Member Function Details

Accept Member Function

public TcpSocket Accept()

Definition
Line 156 of System.Net.Sockets/TcpSocket.cm


Bind Member Function

public void Bind(int port)

Definition
Line 136 of System.Net.Sockets/TcpSocket.cm


Close Member Function

public void Close()

Definition
Line 97 of System.Net.Sockets/TcpSocket.cm


Connect Member Function

public void Connect(const String<char>& node, const String<char>& service)

Definition
Line 116 of System.Net.Sockets/TcpSocket.cm


Connect Member Function

public void Connect(const String<char>& node, const String<char>& service, ConnectOptions options)

Definition
Line 120 of System.Net.Sockets/TcpSocket.cm


Listen Member Function

public void Listen(int backLog)

Definition
Line 146 of System.Net.Sockets/TcpSocket.cm


Receive Member Function

public int Receive(byte* buffer, int count)

Definition
Line 191 of System.Net.Sockets/TcpSocket.cm


Send Member Function

public int Send(byte* buffer, int count)

Definition
Line 179 of System.Net.Sockets/TcpSocket.cm


Shutdown Member Function

public void Shutdown(ShutdownMode mode)

Definition
Line 168 of System.Net.Sockets/TcpSocket.cm


operator= Member Function

public nothrow void operator=(TcpSocket&& that)

Definition
Line 69 of System.Net.Sockets/TcpSocket.cm


operator= Member Function

suppress void operator=(const TcpSocket&)

Definition
Line 62 of System.Net.Sockets/TcpSocket.cm