public class AddrInfo
Modifier and Type | Field |
---|---|
IntNumber |
ai_flags
|
IntNumber |
ai_family
|
IntNumber |
ai_socktype
|
IntNumber |
ai_protocol
|
IntNumber |
ai_addrlen
|
UnsafePointer |
ai_canonname
|
UnsafePointer |
ai_addr
|
UnsafePointer |
ai_next
|
public class AddrInfoReader
Modifier and Type | Field |
---|---|
UnsafePointer |
paddrinfo
|
UnsafePointer |
prootinfo
|
Modifier and Type | Constructor / Static Method |
---|---|
AddrInfoReader |
constructor(String service, AddrInfo info)
|
AddrInfoReader |
constructor(String node, String service, AddrInfo info)
|
Modifier and Type | Property |
---|---|
get BoolValue |
Available()
|
Modifier and Type | Method |
---|---|
|
next()
|
|
read(AddrInfo info)
|
|
close()
|
public class IN_ADDR
Modifier and Type | Field |
---|---|
LongNumber |
addr
|
Modifier and Type | Property |
---|---|
set |
Value(LongNumber addr)
|
Modifier and Type | Method |
---|---|
|
clear()
|
public class SOCKADDR_IN
Modifier and Type | Field |
---|---|
ShortNumber |
family
|
ShortNumber |
port
|
IN_ADDR |
sin_addr
|
|
sin_zero
|
Modifier and Type | Static Property |
---|---|
get SOCKADDR_IN |
Default()
|
Modifier and Type | Property |
---|---|
set |
ip_address(String ip)
|
public class Socket
Modifier and Type | Field |
---|---|
Handle |
_handle
|
Modifier and Type | Constructor / Static Method |
---|---|
Socket |
constructor(Handle handle)
|
Socket |
constructor(IntNumber adressFamily, IntNumber type, IntNumber protocol)
|
Modifier and Type | Static Property |
---|---|
get Socket |
Default()
|
Modifier and Type | Property |
---|---|
get BoolValue |
isInvalid()
|
Modifier and Type | Method |
---|---|
|
open(UnsafePointer sockAddrPtr, IntNumber nameLen)
|
|
bind(UnsafePointer sockAddrPtr, IntNumber nameLen)
|
|
listen(IntNumber backLog)
|
BoolValue |
tryOpen(UnsafePointer ptr, IntNumber len)
|
|
connect(String ip_address, IntNumber port)
|
IntNumber |
write(system'ByteNumber[] buffer)
|
IntNumber |
write(system'ByteNumber[] buffer, IntNumber length, IntNumber flags)
|
IntNumber |
read(system'ByteNumber[] buffer, IntNumber maxLength, IntNumber flags)
|
Socket |
accept()
|
|
shutdown(IntNumber how)
|
IntNumber |
iocommand(IntNumber command)
|
|
option(IntNumber level, IntNumber option, BoolValue value)
|
|
close()
|
public class SocketException
Modifier and Type | Constructor / Static Method |
---|---|
SocketException |
new(String message, IntNumber code)
|
SocketException |
new(String message)
|
Modifier and Type | Property |
---|---|
get IntNumber |
ErrorCode()
|
Modifier and Type | Method |
---|---|
String |
toPrintable()
|