RE: [Dev-C++] Yet another winsock question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Jaap de W. <wo...@Ne...> - 2003-02-06 07:09:58
|
Sending individual bytes is possible (also in the way you mean), but I shouldn't recommend it. This because even for an individual byte over the TCP/IP connection a complete packet is sent, which means for a individual byte you send the same amount of bytes over the net, as for let say 1024 bytes (of cause depending on your MTU settings). Because of this reason I don't think you can expect functions which do so. If your application allows it, you better create a class (eg derived from ostream) with a separate thread, which allows you to put one byte at a time to the buffer, but sends the buffer when it is full. If your interested, I can provide you sources, which do something like that. > -----Original Message----- > From: Lucas K. Tavares [mailto:lk...@bo...] > Sent: Thursday, February 06, 2003 03:11 AM > To: DEV Cpp List > Subject: [Dev-C++] Yet another winsock question > > > Ok, this time winsock is working perfectly, but I was > wondering are there > any other functions other than send and sendto to send data? > > Because what if I wanted a function to send individual bytes? > And I don't > mean: > > unsigned char a; > a = 50; > send(s, a, 1, 0); > > Thanks for any answer, even if negative... heh > lkt153 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |