This wiki is out of date, use the continuation of this wiki instead

NET Separator

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:53, 2 October 2007 (edit)
Sandman (Talk | contribs)
(New page: Category:functions Category:networkdll Category:dll '''Up to Network.DLL Functions''' ---- ==Definition== '''INT''' NET_Separator ( <'''WORD'...)
← Previous diff
Current revision (12:53, 2 October 2007) (edit) (undo)
Sandman (Talk | contribs)
(New page: Category:functions Category:networkdll Category:dll '''Up to Network.DLL Functions''' ---- ==Definition== '''INT''' NET_Separator ( <'''WORD'...)
 

Current revision

Up to Network.DLL Functions



[edit] 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> ).

[edit] Parameters

WORD connection - The connection identifier.
STRING separator - The separation string. Specify 0 for normal operation, thus without separation.
BYTE length - The length of the separation string.

[edit] 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()
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()
Personal tools