class · System.Net
TcpClient
public class System.Net.TcpClient : System.Any
One TCP connection.
- Kind
- class
- Namespace
- System.Net
- Assembly
- System.Core
- Access
- public, final
- Source file
Net.ant
Inheritance
- Base classes
-
AnyTcpClient
Constructors
Properties
property Stream: System.Net.NetworkStream
#
Methods
static method Connect(host: System.String<u8>, port: i32) -> System.Net.TcpClient
#
Connects to host (a name or an address) at port.
method Write(text: System.String<u8>) -> void
#
Writes the text's UTF-8 bytes.
method Read(max: i32) -> System.String<u8>
#
Reads what has arrived, up to max bytes, as text (empty when the other end closed).
method Close() -> void
#
Private and internal members (2)
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
TcpClient as Larva HIR, decompiled from its Larva HIR.
// One TCP connection.
public class System.Net.TcpClient : System.Any
{
field stream: System.Net.NetworkStream
static method ConnectTo(host: u16[], port: i64) -> i64
constructor TcpClient(handle: i64)
// Connects to `host` (a name or an address) at `port`.
static method Connect(host: System.String<u8>, port: i32) -> System.Net.TcpClient
// Writes the text's UTF-8 bytes.
method Write(text: System.String<u8>) -> void
// Reads what has arrived, up to `max` bytes, as text (empty when the other end closed).
method Read(max: i32) -> System.String<u8>
method Close() -> void
property Stream: System.Net.NetworkStream
}