socket programming

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello

i found there are three socket programming architectures from dotnet:synchronized socket,asynchronized socket and TcpListener.
i know that the asynchronized socket is non-blocking socket.i can use it implementing non-blocking socket communication.
but i don't know how to determine when i use the synchronized socket or TcpListener.

who can help me?
 
Hello!

The asynchronous socket is a blocking socket.

Can't you just read your own code in order to determine if you're using
TcpListener?


Best regards,

Henrik Dahl

zbcong said:
hello

i found there are three socket programming architectures from
dotnet:synchronized socket,asynchronized socket and TcpListener.
i know that the asynchronized socket is non-blocking socket.i can use it
implementing non-blocking socket communication.
 
maybe you don't understand me,what i mean is : BEFORE the coding,that is during the designing phrase,how can i make the choice between the sync socket and TcpListener.
 
TcpListener is a higher abstraction level class dealing with a lower
abstraction level socket and therefore such a choice is not made.

Have you considered to read and understand a book which describes how socket
based communication should be done. The book from Microsoft Press could be
an idea, like getting the speech from the horse's own mouth. It explains all
these basic details of course.


Best regards,

Henrik Dahl

zbcong said:
maybe you don't understand me,what i mean is : BEFORE the coding,that is
during the designing phrase,how can i make the choice between the sync
socket and TcpListener.
 
Back
Top