ntnet_interface

Procs | |
Initialize | Initialize for the interface |
---|---|
connect_port | Connect to a port on this interface |
deregister_port | Disconnects an existing port in the interface |
register_port | Create a port for this interface |
Proc Details
Initialize
Initialize for the interface
Assigns a hardware id and gets your object onto the network
Arguments:
- network_name - Fully qualified network id of the network we are joining
- network_tag - The objects id_tag. Used for finding the device at mapload time
connect_port
Connect to a port on this interface
Returns the shared list that this interface uses to send data though a port.
Arguments:
- port - text, Name of the port installed on this interface
deregister_port
Disconnects an existing port in the interface
Removes a port from this interface and marks it that its has been disconnected
Arguments:
- port - text, Name of the port installed on this interface
- data - list, shared list of data. Don't put objects in this
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:
- port - text, Name of the port installed on this interface
- data - list, shared list of data. Don't put objects in this