CrazyEngineers
  • cursed
    cursed

    MemberApr 3, 2010

    Socket Programming in C#

    First of all, I would like to thank the whole team of CrazyEngineers for wishing me on my birthday! 😀

    And I wanted to ask if anyone could give me a good tutorial link of Multithreading in C#. Also can anyone tell me the difference between the classes Socket, Tcpclient and TcpListener in C#? Will be waiting for your replies. Thanks

    Regards,
    Cursed
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • savitha_chandu

    MemberApr 4, 2010

    The Socket class is not protocol specific and provides an abstraction for network communication. This way you can write code using a single set of semantics (Bind, Connect, Send, Receive, etc) regardless of the network protocols you wish you use. For example, you can write a Sockets-based application that uses IPv4 or IPv6 (and more ) as the network layer.

    TCPClient is a wrapper around the sockets class designed only for TCP over IPv4/v6 communication. This class is intended to make it simpler (less code) to write TCP based client side applications.

    TCPListener is another wrapper around the Socket class, but is designed to make it easy to create server side TCP over IPv4/v6 applications.

    Any sockets programming book or the MSDN documentation for the sockets class should further clarify the distinction.
    😁
    Are you sure? This action cannot be undone.
    Cancel
  • savitha_chandu

    MemberApr 4, 2010

    savitha_chandu
    The Socket class is not protocol specific and provides an abstraction for network communication. This way you can write code using a single set of semantics (Bind, Connect, Send, Receive, etc) regardless of the network protocols you wish you use. For example, you can write a Sockets-based application that uses IPv4 or IPv6 (and more ) as the network layer.

    TCPClient is a wrapper around the sockets class designed only for TCP over IPv4/v6 communication. This class is intended to make it simpler (less code) to write TCP based client side applications.

    TCPListener is another wrapper around the Socket class, but is designed to make it easy to create server side TCP over IPv4/v6 applications.

    Any sockets programming book or the MSDN documentation for the sockets class should further clarify the distinction.
    😁
    Things turn out best for people who make the best of the way things turn out.
    Are you sure? This action cannot be undone.
    Cancel
  • cursed

    MemberApr 5, 2010

    Thank you! Your reply was really helpful! 😀
    Are you sure? This action cannot be undone.
    Cancel
  • geveruk

    MemberFeb 7, 2012

    C# socket programming

    #-Link-Snipped-#

    gvr.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register