Ferenc Tamas Gyurcsan writes:
> Does anybody know how to read out-of-band data? I tried it this way:
> if ((br= recv(s,buf,n-bcount,MSG_OOB)) > 0) {....
> But all it gives me is an ": Invalid argument " (after calling perror), so it
> doesn't work.
You're using TCP here, right? (I assume that you are)
You're not executing this code from a signal handler, are you?
Are you using SO_OOBINLINE?
Are you using ioctl(..., SIOCATMARK)?
At the point at which your code (above) is executed, are you
absolutely sure that the OOB data has arrived? What mechanism are you
using? Just to be clear here, just because the receiver gets a TCP
segment with the URG flag set doesn't necessarily mean that the actual
data will be arriving anytime soon (for example, flow control might
prevent this from happening).
To be of more help here, we need more details. There's quite a few
scenerios here.
I hope this helps,
--kevin
--
Kevin D. Clark | |
[EMAIL PROTECTED] | [EMAIL PROTECTED] | Give me a decent UNIX
Cabletron Systems, Inc. | PGP Key Available | and I can move the world
Durham, N.H. (USA) | |
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************