Socket Programming in C#

cursed

cursed

@cursed-qjINzu β€’ Oct 26, 2024

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

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • savitha_chandu

    savitha_chandu

    @savitha-chandu-gjCsnX Apr 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.
    😁

  • savitha_chandu

    savitha_chandu

    @savitha-chandu-gjCsnX Apr 4, 2010

    savitha_chanduThe 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.

  • cursed

    cursed

    @cursed-qjINzu Apr 5, 2010

    Thank you! Your reply was really helpful! πŸ˜€

  • geveruk

    geveruk

    @geveruk-pJe1Dj Feb 7, 2012

    C# socket programming

    #-Link-Snipped-#

    gvr.