Easy to use TCP/UDP library for each programming language

CBoolean

CBoolean(value)
GetDataType()
ToString()
Value

CByteArray

CByteArray(value)
GetDataType()
ToString()
Value

CFloat

CFloat(value)
GetDataType()
ToString()
Value

CInteger

CInteger(value)
GetDataType()
ToString()
Value

CString

CString(value)
GetDataType()
ToString()
Value

CSocket

Close()
SetReceivedCallback(function(csocket, data))
Available           
LocalAddress            
ProtocolType

CSocketAddress

CSocketAddress(host, port)
Host            
Port

CSocketData

CSocketData()
Append(buffer, bytesTransferred)    
Manipulate()        
Args
Command

CSocketDataArgLength

CSocketDataArgLength(size, argL)
Size    
ArgL

CSocketDataArgs

CSocketDataArgs()
Add(arg)
At(i)   
Clear()
Length

CSocketDataManipulationResult

Completed
InProgress
NoData      
ParsingError

CSocketDataParsingStep

SOH
OTL
STX     
ETX
CHK
EOT

CSocketProtocolType

Tcp
Udp

CSocketReceivedData

NetSocketReceivedData(command, args, result, address)
Args
Command
RemoteAddress
Result

CSocketReceivedDataResult

Closed
Completed
Interrupted
ParsingError

CSocketSendData

NetSocketSendData(command, args)
Args
BuildResult
Bytes
Command
Length

CSocketSendDataBuildResult

ByteArrayLengthOverflowError
CommandValueOverflowError
DataTotalLengthOverflowError
DataTypeNotImplementedError
NoData
StringLengthOverflowError
Successful

TcpServer

SetAcceptCallback(function(tcpsocket))
Close()
Running

TcpSocket Inherits CSocket

TcpSocket(socket)
Send(data)
Connected
RemoteAddress

UdpSocket Inherits CSocket

UcpSocket(socket)
Send(data, address)