Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, How to send/recv URGENT data on TCP application using socket options. Thanks in advance, Srini....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    8

    send/recv urgdata on tcp application


    Hello,

    How to send/recv URGENT data on TCP application using socket options.

    Thanks in advance,
    Srini.

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Use MSG_OOB flag while sending.

    Eg:

    send (sock_fd, data, (data_length), MSG_OOB)

    This shud do.

    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    8
    Quote Originally Posted by cyberinstru View Post
    Use MSG_OOB flag while sending.

    Eg:

    send (sock_fd, data, (data_length), MSG_OOB)

    This shud do.

    Can't we send without using MSG_OOB. Is it possible to use setsockopt() for sending urgdata.

    thanks,
    sri.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Using setsockopt u can say how to handle Urg data.

    Can't we send without using MSG_OOB. Is it possible to use setsockopt() for sending urgdata.
    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.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  6. #5
    Just Joined!
    Join Date
    May 2007
    Posts
    8
    Quote Originally Posted by cyberinstru View Post
    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.
    Thanks for reply,
    What I need is "Is it possible to send URGDATA not using MSG_OOB. Is there any mechanism. I am implementing tcp/ip multiple client server implementation.
    I am capturing all packets using etheral sniffer.

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •