TcpSocket Class

Constructors & Destructor | Member Functions | Member Variables

Represents a synchronous reliable connection-oriented socket.

Definition

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

Inheritance

Constructors & Destructor

public TcpSocket()
public TcpSocket(TcpSocket&& that)
public TcpSocket(const String<char>& node, const String<char>& service)
public TcpSocket(const String<char>& node, int port)
public TcpSocket(void* handle_)
public override ~TcpSocket()

Member Functions

public Result<TcpSocket> Accept()
public Result<bool> Bind(int port)
public Result<bool> Close()
public Result<bool> Connect(const String<char>& node, const String<char>& service)
public Result<bool> Connect(const String<char>& node, int port)
public Result<bool> Listen(int backlog)
public Result<int> Receive(byte* buffer, int count)
public Result<int> Send(byte* buffer, int count)
public Result<bool> SendAll(byte* buffer, int count)
public Result<bool> Shutdown(ShutdownMode mode)
public void operator=(TcpSocket&& that)

Member Variables

private bool connected
private void* handle
private bool shutdown

Constructor& Destructor Details

TcpSocket Constructor

public TcpSocket()

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


TcpSocket Constructor

public TcpSocket(TcpSocket&& that)

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


TcpSocket Constructor

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

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


TcpSocket Constructor

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

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


TcpSocket Constructor

public TcpSocket(void* handle_)

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


~TcpSocket Destructor

public override ~TcpSocket()

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


Member Function Details

Accept Member Function

public Result<TcpSocket> Accept()

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


Bind Member Function

public Result<bool> Bind(int port)

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


Close Member Function

public Result<bool> Close()

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


Connect Member Function

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

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


Connect Member Function

public Result<bool> Connect(const String<char>& node, int port)

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


Listen Member Function

public Result<bool> Listen(int backlog)

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


Receive Member Function

public Result<int> Receive(byte* buffer, int count)

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


Send Member Function

public Result<int> Send(byte* buffer, int count)

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


SendAll Member Function

public Result<bool> SendAll(byte* buffer, int count)

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


Shutdown Member Function

public Result<bool> Shutdown(ShutdownMode mode)

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


operator= Member Function

public void operator=(TcpSocket&& that)

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