Hello,
How to send/recv URGENT data on TCP application using socket options.
Thanks in advance,
Srini.
Printable View
Hello,
How to send/recv URGENT data on TCP application using socket options.
Thanks in advance,
Srini.
Use MSG_OOB flag while sending.
Eg:
send (sock_fd, data, (data_length), MSG_OOB)
This shud do.
:)
Using setsockopt u can say how to handle Urg data.
It looks like, u need to send data with URG set only on certain occasions. If you can be a bit clear on what u expect, we can try to come out with some more clear explanations.Quote:
Can't we send without using MSG_OOB. Is it possible to use setsockopt() for sending urgdata.