Ok, thanks, no need to though... appreciate all the help...
lkt153
> 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
|