NET Separator
(Redirected from Net separator)
Jump to navigation
Jump to search
Definition
INT NET_Separator ( <WORD connection> , <STRING separator> , <BYTE length> )
Specifies a separation string. Messages will be separated where this string is found. This is useful for various reasons. Like making an IRC client, you can do:
NET_Separator( netid , chr(13)+chr(10) , 2 );
IRC uses the ending string \r\n (carriagereturn and newline), so now the incoming messages will be automatically separated.
Maximum length is 255 characters.
NET_Separator( <WORD connection> ) equals NET_GetSeparator( <WORD connection> ).
Parameters
WORD connection | - The connection identifier. |
STRING separator | - The separation string. Specify 0 to disable message separation. |
BYTE length | - The length of the separation string. Specify 0 to disable message separation. |
Returns
INT : Network.DLL Errorcode
NET_ERROR_INVALIDCONN | - The connection is invalid. |
NET_ERROR_CONNINACTIVE | - The connection is inactive. |
NET_ERROR_NONE | - No error. |
Network.DLL Functions | |
Global | NET_Init() • NET_Quit() • NET_Version() • NET_IntVersion() • NET_About() • NET_GetError() • NET_Stat_Buffer() • NET_IntToIP() • NET_IPToInt() |
Connections | NET_Connect() • NET_Listen() • NET_Disconnect() • NET_DisconnectAll() • NET_Accept() • NET_Incoming_Accept() |
Connection | NET_Resolve() • NET_Hostname() • NET_IPAddress() • NET_Port() • NET_Separator() • NET_GetSeparator() • NET_GetSeparatorLength() |
Transfer | NET_Recv() • NET_RecvFile() • NET_RecvGraph() • NET_RecvVar() • NET_Send() • NET_SendFile() • NET_SendGraph() • NET_SendRN() • NET_SendVar() |