mnSetTCPPostfix

This command is used on instances that will be using TM_POST_FIX (2) TCP mode. See Reliable (TCP) for more information on TCP modes and postfixes.

By default the postfix is “\r\n” (C++ escape characters) for use with HTTP.

For this command to have any effect mnSetTCPMode must be used to change the TCP mode to TM_POST_FIX. This can be done before or after using this command.

This command should be used before initializing an instance in server state (mnStartServer) or client state (mnConnect).

C++ and .NET users: an overloaded version of this command exists which takes a clPacket (C++) or Packet (.NET) object instead of a long long int.

Parameters

int Instance: This is the instance that the command should use.

long long int Packet: This is the packet containing the postfix to be used.

Returns (Unsigned Integer)

Any number if no error occurred. This is the number of packets in the UDP packet queue.

0 if an error occurred.

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Networking Commands
(1) Networking
(0) DarkNet Help