Since I don't have any control over the the Server-side (Java Socket
Application), I ready to go for flexibility (Socket) instead of Convenience.

thanks

Raj

-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Tracy Martin
Sent: Friday, September 12, 2003 7:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Setting Timeout for Socket Client
Connection


The only real differences I can point to (I am not an expert in this
subject) is the level of control you have.

TcpClient does a lot for you automatically - which is fine until you need
to have more direct control than it gives you.

Socket gives you a lot of flexibility in what you can do - but at the
expense of you having to do all the "donkey work" (those things that
TcpClient handles for you).

Convenience (TcpClient) and control (Socket) - opposite ends of the same
ruler. Which is more important to you?

At 17:14 9/11/2003, Muthuraj Velayutham wrote:

>Hi Tracy and Bogdan,
>
>This is what I was looking for !!!.
>
>I am a new to Network programming, I am trying to understand the difference
>between using TcpClient over Socket Client. Do you guys know the pros and
>cons chosing between TcpClient and Socket Client ?
>
>Thanks.
>
>-----Original Message-----
>From: Moderated discussion of advanced .NET topics.
>[mailto:[EMAIL PROTECTED] Behalf Of Tracy Martin
>Sent: Thursday, September 11, 2003 1:01 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [ADVANCED-DOTNET] Setting Timeout for Socket Client
>Connection
>
>
>At 13:22 9/11/2003, Muthuraj Velayutham wrote:
> >Socket m_socClient = new Socket(AddressFamily.InterNetwork,
> >SocketType.Stream, ProtocolType.Tcp);
>
>m_socClient.SetSocketOption(SocketOptionLevel.Socket,
>SocketOptionName.ReceiveTimeout, 30000)
>
>
>===================================
>This list is hosted by DevelopMentor.  http://www.develop.com
>NEW! ASP.NET courses you may be interested in:
>
>2 Days of ASP.NET, 29 Sept 2003, in Redmond
>http://www.develop.com/courses/2daspdotnet
>
>Guerrilla ASP.NET, 13 Oct 2003, in Boston
>http://www.develop.com/courses/gaspdotnet
>
>View archives and manage your subscription(s) at http://discuss.develop.com
>
>===================================
>This list is hosted by DevelopMentor�  http://www.develop.com
>NEW! ASP.NET courses you may be interested in:
>
>2 Days of ASP.NET, 29 Sept 2003, in Redmond
>http://www.develop.com/courses/2daspdotnet
>
>Guerrilla ASP.NET, 13 Oct 2003, in Boston
>http://www.develop.com/courses/gaspdotnet
>
>View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to