public class TcpClient
Modifier and Type | Field |
---|---|
Thread |
_thread
|
Socket |
_socket
|
system'ByteNumber[] |
_buffer
|
IntNumber |
_maxLength
|
Func<net'TcpClient,system'Object> |
onConnect
|
Func<net'TcpClient,system'Array<system'ByteNumber>,ystem'IntNumber,system'Object> |
onReceived
|
Func<net'TcpClient,system'net'SocketException,system'Object> |
onError
|
Modifier and Type | Constructor / Static Method |
---|---|
TcpClient |
new()
|
TcpClient |
new(IntNumber size)
|
Modifier and Type | Method |
---|---|
|
connect(String address, IntNumber port)
|
|
close()
|
|
write(system'ByteNumber[] buffer, IntNumber length)
|
|
start()
|
public class TcpClientException
Modifier and Type | Constructor / Static Method |
---|---|
TcpClientException |
new(String s)
|
public class TcpClientWriter
Modifier and Type | Field |
---|---|
TcpClient |
_client
|
Modifier and Type | Constructor / Static Method |
---|---|
TcpClientWriter |
new(TcpClient client)
|
Modifier and Type | Property |
---|---|
get Object |
Source()
|
Modifier and Type | Method |
---|---|
|
close()
|
BoolValue |
write(system'ByteNumber[] buffer, IntNumber length)
|
public class TcpRemoteClient
Modifier and Type | Constructor / Static Method |
---|---|
TcpRemoteClient |
assign(Socket socket)
|
Modifier and Type | Method |
---|---|
IntNumber |
read(system'ByteNumber[] buffer, IntNumber maxLength)
|
IntNumber |
write(system'ByteNumber[] buffer, IntNumber length)
|
|
close()
|
public class TcpServer
Modifier and Type | Field |
---|---|
Socket |
_listenSocket
|
List<net'TcpRemoteClient> |
_clients
|
Thread |
_listenThread
|
system'ByteNumber[] |
_buffer
|
IntNumber |
_maxLength
|
Func<net'TcpRemoteClient,system'Object> |
OnConnect
|
Func<net'TcpRemoteClient,system'Object> |
OnLeave
|
Func<net'TcpRemoteClient,system'Array<system'ByteNumber>,ystem'IntNumber,system'Object> |
OnReceived
|
Func<net'TcpRemoteClient,system'net'SocketException,system'Object> |
OnError
|
Modifier and Type | Constructor / Static Method |
---|---|
TcpServer |
new(IntNumber port)
|
TcpServer |
new(IntNumber port, IntNumber bufferSize)
|
Modifier and Type | Property |
---|---|
get Enumerable<net'TcpRemoteClient> |
Clients()
|
set |
Blocking(BoolValue val)
|
Modifier and Type | Method |
---|---|
|
start()
|
TcpServer |
broadcast(system'ByteNumber[] buffer, IntNumber length)
|
|
close()
|
public class TcpServerWriter
Modifier and Type | Field |
---|---|
TcpServer |
_server
|
Modifier and Type | Constructor / Static Method |
---|---|
TcpServerWriter |
new(TcpServer server)
|
Modifier and Type | Property |
---|---|
get Object |
Source()
|
Modifier and Type | Method |
---|---|
|
close()
|
BoolValue |
write(system'ByteNumber[] buffer, IntNumber length)
|