Connecting Tech Pros Worldwide Forums | Help | Site Map

socket programming

zbcong
Guest
 
Posts: n/a
#1: Nov 16 '05
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?


Henrik Dahl
Guest
 
Posts: n/a
#2: Nov 16 '05

re: socket programming


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" <zbcong@discussions.microsoft.com> wrote in message
news:C2ADC487-3393-47AE-86FC-03F6F7E09A45@microsoft.com...[color=blue]
> hello
>
> i found there are three socket programming architectures from[/color]
dotnet:synchronized socket,asynchronized socket and TcpListener.[color=blue]
> i know that the asynchronized socket is non-blocking socket.i can use it[/color]
implementing non-blocking socket communication.[color=blue]
> but i don't know how to determine when i use the synchronized socket or[/color]
TcpListener.[color=blue]
>
> who can help me?
>[/color]


zbcong
Guest
 
Posts: n/a
#3: Nov 16 '05

re: socket programming


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.


Henrik Dahl
Guest
 
Posts: n/a
#4: Nov 16 '05

re: socket programming


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" <zbcong@discussions.microsoft.com> wrote in message
news:A7FCC1F1-F3BF-4D9E-8196-412E4BE1A5FF@microsoft.com...[color=blue]
> maybe you don't understand me,what i mean is : BEFORE the coding,that is[/color]
during the designing phrase,how can i make the choice between the sync
socket and TcpListener.[color=blue]
>
>[/color]


Closed Thread