tksdl_nettksdl_netIPAddress - Represents an IPV4 address
getHost() : int - Query host address
getHostName() : String - Query host name
getHostString() : String - Return IP address as string
getPort() : int - Query port number
init(int addr, port) - Set host and port
setHost(int addr) - Set host address
setHostByName(String name) - Resolve name to IP address and set as host address
setPort(int portnr) - Set port numberNetwork - Static wrapper class for the SDL_net networking functions.
addSocket(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 -
TCPSocket - Represents an SDL_net TCP socket
accept() : TCPSocket - Accept client connection and return new TCPSocket object
close() - Close socket
getPeerAddress() : IPAddress - Query peer IPV4 address and port number
open(IPAddress ip) - Open socket
recv(Buffer netbuf, int num) - Receive data
send(Buffer netbuf, int num) - Send data
sendString(String s) - Send string
socketReady() : boolean - Check whether this socket has been marked as active. UDPPacket - Represents a user datagram protocol packet
getAddress() : IPAddress -
getChannel() : int -
getData() : Buffer -
getLength() : int -
getStatus() : int -
setAddress(IPAddress ip) -
setChannel(int ch) -
setData(Buffer netbuf) -
setLength(int len) - UDPSocket - Represents a user datagram protocol socket
bind(int ch, IPAddress ip) : boolean -
close() -
getPeerAddress(int ch) : IPAddress -
open(int port) : boolean -
recv(UDPPacket packetRet) : boolean -
send(int ch, UDPPacket packet) : boolean -
socketReady() : boolean -
unbind(int ch) - | 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