default
tksdl_net
tksdl_nettksdl_net.NetworkaddSocket(Object socket) - Add TCP/UDP socket to (internal) socket set
addTCPSocket(TCPSocket socket) - Add TCP socket to (internal) socket set
addUDPSocket(UDPSocket socket) - Add UDP socket to (internal) socket set
allocSocketSet(int num) : boolean - Create a socket set that will be able to watch up to a given amount of sockets.
checkSockets(int timeoutMilliSec) - Check all sockets in the (internal) socket set for activity.
freeSocketSet() - Free (internal) socket set
getError() : String - Return last error String.
removeSocket(Object socket) - Remove TCP or UDP socket from (internal) socket set
resolveHost(String name, int port) : IPAddress - Resolve hostname and port and return IPAddress object
resolveIP(IPAddress addr) : String - Reverse DNS lookup, return hostname for IPV4 addressint INADDR_ANY -
int INADDR_NONE -
Method addSocket | |||||
Add TCP/UDP socket to (internal) socket set | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This is a wrapper for the SDLNet_TCP_AddSocket() native function. |
Method addTCPSocket | |||||
Add TCP socket to (internal) socket set | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This is a wrapper for the SDLNet_TCP_AddSocket() native function. |
Method addUDPSocket | |||||
Add UDP socket to (internal) socket set | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
TODO: implementation missing |
Method allocSocketSet | ||||||||||
Create a socket set that will be able to watch up to a given amount of sockets. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
This is a wrapper function for the SDLNet_AllocSocketSet() native function. The resulting SDLNet_SocketSet will be stored internally. | ||||||||||
Method checkSockets | |||||
Check all sockets in the (internal) socket set for activity. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This is a wrapper for the SDLNet_CheckSockets() native function. |
Method freeSocketSet | |||
Free (internal) socket set | |||
Signature | |||
|
Method getError | |||||
Return last error String. | |||||
Signature | |||||
| |||||
Returns | |||||
Description | |||||
This is a wrapper for the SDLNet_GetError() native function. |
Method removeSocket | |||||
Remove TCP or UDP socket from (internal) socket set | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This is a wrapper for the SDLNet_TCP_DelSocket() native function. |
Method resolveHost | ||||||||
Resolve hostname and port and return IPAddress object | ||||||||
Signature | ||||||||
Arguments | ||||||||
| ||||||||
Returns | ||||||||
Description | ||||||||
This is a wrapper function for the SDLNet_ResolveHost() native function. |
Method resolveIP | ||||
Reverse DNS lookup, return hostname for IPV4 address | ||||
Signature | ||||
Arguments | ||||
| ||||
Returns | ||||
Description | ||||
This is a wrapper function for the SDLNet_ResolveIP() native function. |
Constant INADDR_ANY (int) | |
Constant INADDR_NONE (int) | |
| Project Modules: | tksdl_net |
| Project Classes: | IPAddress , Network , TCPSocket , UDPPacket , UDPSocket |
| Project Functions: | |
| All Namespaces: | default , graph , ui |
| All Projects: | core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest |
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:42:00