# UOX3 Script Engine

### API and Event handling

### Socket Related Functions

GetDWord
Prototype |
    long GetDWord( offset );
Purpose | Return a 32bit word from a socket at offset
Example of Usage |
    var cName = sock.GetDWord( 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 );

RegisterPacketHandler
Prototype |
Purpose |
Example of Usage |

UnregisterPacketHandler
Prototype |
Purpose |
Example of Usage |

©Copyright 2000-2001 WWW.UOX3.NET (Daniel Stratton/Matthew Randall)