/tg/ Station 13 - Modules - TypesProc Details

ntnet_interface

Procs

InitializeInitialize for the interface
connect_portConnect to a port on this interface
deregister_portDisconnects an existing port in the interface
register_portCreate a port for this interface

Proc Details

Initialize

Initialize for the interface

Assigns a hardware id and gets your object onto the network

Arguments:

connect_port

Connect to a port on this interface

Returns the shared list that this interface uses to send data though a port.

Arguments:

deregister_port

Disconnects an existing port in the interface

Removes a port from this interface and marks it that its has been disconnected

Arguments:

register_port

Create a port for this interface

A port is basicity a shared associated list() with some values that indicated its been updated. (see _DEFINES/network.dm). By using a shared we don't have to worry about qdeling this object if it goes out of scope.

Once a port is created any number of devices can use the port, however only the creating interface can disconnect it.

Arguments: