UOX3 Script Engine

API and Event handling

Socket Related Functions

 

GetDWord
Prototype
long GetDWord( offset );
PurposeReturn a 32bit word from a socket at offset
Example of Usage
var cName = sock.GetDWord( 0 );

 

CreateBuffer
Prototype
BUFID CreateBuffer( len );
PurposeCreates a buffer of length len
Example of Usage
var buf = CreateBuffer( 24 );

 

DestroyBuffer
Prototype
DestroyBuffer( buffer );
PurposeDestroys memory allocated with CreateBuffer
Example of Usage
DestroyBuffer( buf );

 

SendBuffer
Prototype
SendBuffer( socket, bufferID );
PurposeSends buffer bufferID to socket
Example of Usage
SendBuffer( sock, buf );

 

RegisterPacketHandler
Prototype
Purpose
Example of Usage

 

UnregisterPacketHandler
Prototype
Purpose
Example of Usage
©Copyright 2000-2001 WWW.UOX3.NET (Daniel Stratton/Matthew Randall)