GetString | ||
---|---|---|
Prototype | string GetString( socket, offset [, len] ); | |
Purpose | Return a string from a socket at offset with optional length len | |
Example of Usage | var sName = GetString( sock, 0 ); |
GetByte | ||
---|---|---|
Prototype | unsigned char GetByte( socket, offset ); | |
Purpose | Return a byte from a socket at offset | |
Example of Usage | var cName = GetByte( sock, 0 ); |
GetWord | ||
---|---|---|
Prototype | unsigned short GetWord( socket, offset ); | |
Purpose | Return a 16bit word from a socket at offset | |
Example of Usage | var cName = GetWord( sock, 0 ); |
GetDWord | ||
---|---|---|
Prototype | long GetDWord( socket, offset ); | |
Purpose | Return a 32bit word from a socket at offset | |
Example of Usage | var cName = GetDWord( sock, 0 ); |
CreateBuffer | ||
---|---|---|
Prototype | BUFID CreateBuffer( len ); | |
Purpose | Creates a buffer of length len | |
Example of Usage | var buf = CreateBuffer( 24 ); |
DestroyBuffer | ||
---|---|---|
Prototype | DestroyBuffer( buffer ); | |
Purpose | Destroys memory allocated with CreateBuffer | |
Example of Usage | DestroyBuffer( buf ); |
SendBuffer | ||
---|---|---|
Prototype | SendBuffer( socket, bufferID ); | |
Purpose | Sends buffer bufferID to socket | |
Example of Usage | SendBuffer( sock, buf ); |
SetByte | ||
---|---|---|
Prototype | SetByte( socket, offset, value ); | |
Purpose | Sets the byte at offset for socket to value | |
Example of Usage | SetByte( sock, 0, 64 ); |
SetWord | ||
---|---|---|
Prototype | SetWord( socket, offset, value ); | |
Purpose | Sets the 16bit word at offset for socket to value | |
Example of Usage | SetWord( sock, 0, 0164 ); |
SetDWord | ||
---|---|---|
Prototype | SetDWord( socket, offset, value ); | |
Purpose | Sets the 32bit word at offset for socket to value | |
Example of Usage | SetDWord( sock, 0, 01640164 ); |
SetString | ||
---|---|---|
Prototype | SetString( socket, offset, value ); | |
Purpose | Sets the string at offset for socket to value | |
Example of Usage | SetString( sock, 0, "Die!" ); |
ReadBytes | ||
---|---|---|
Prototype | ReadBytes( socket, bytecount ); | |
Purpose | Reads bytecount bytes from socket | |
Example of Usage | ReadBytes( sock, 12 ); |
RegisterPacketHandler | ||
---|---|---|
Prototype | ||
Purpose | ||
Example of Usage |
UnregisterPacketHandler | ||
---|---|---|
Prototype | ||
Purpose | ||
Example of Usage |