Re: Connecting to a


[ Follow Ups ] [ Post Followup ] [ Back To Message Board ]

Posted by rick on October 26, 2006 at 03:28:55:

In Reply to: Re: Connecting to a posted by Jason Winnebeck (Gillius) on October 25, 2006 at 20:08:52:

: : Hi all,
: : i tried using a socket from the HawkNL lib to connect to a TCP/IP server. I noticed that
: :
: : nlWrite (sock,str,strlen(str));
: :
: : adds "NL" and a short (representing the size) as prefix
: : to the string str.
: : I hacked it such that the prefix is not added.
: :
: : Is there a clean way to surpress the prefix generation?
: : Thanks,
: : Rick
:
: You probably tried to connect using the NL_RELIABLE_PACKETS protocol, which is HawkNL-specific. You want to connect using NL_RELIABLE, but you won't get "packetized" input -- it will work like normal BSD socket recv calls.

indeed i used NL_RELIABLE_PACKETS, many thanks!
Rick




Follow Ups:


Post a Followup

Name:
E-Mail:

Subject:

Comments:



[ Follow Ups ] [ Post Followup ] [ Back To Message Board ]