#7 SimpleTCPStream

Common_Libraries
closed
Library (32)
2
2005-10-06
2005-10-04
Anonymous
No

Now SimpleTCPStream create socket as simple IP socket
SimpleTCPStream::SimpleTCPStream(const IPV4Host &host,
tpport_t port, size_t size)
: Socket(AF_INET, SOCK_STREAM, 0)

but shoud ctreate as IPPROTO_TCP
SimpleTCPStream::SimpleTCPStream(const IPV4Host &host,
tpport_t port, size_t size)
: Socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)

Discussion

  • David Sugar

    David Sugar - 2005-10-06

    Logged In: YES
    user_id=217

    0 is usually used for default choice. Historically, the only default choice for
    AF_INET family "STREAM" would be TCP. As there are now multiple
    streaming protcols (SCTP), you are probably correct that it would be safer or
    better to specify the protocol number. I will consider doing that, given that it is
    a simple change and I do not see how it could break anything for anyone :).

     
  • David Sugar

    David Sugar - 2005-10-06
    • labels: --> Library
    • priority: 5 --> 2
    • assigned_to: nobody --> dyfet
     
  • David Sugar

    David Sugar - 2005-10-06
    • status: open --> closed
     
  • David Sugar

    David Sugar - 2005-10-06

    Logged In: YES
    user_id=217

    updated in cvs for next release.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks