Re: Connecting to a "ordinary" server?


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

Posted by Jason Winnebeck (Gillius) on October 25, 2006 at 20:08:52:

In Reply to: Connecting to a "ordinary" server? posted by Rick on October 25, 2006 at 04:45:30:

: 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.


Follow Ups:


Post a Followup

Name:
E-Mail:

Subject:

Comments:



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