473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

A question on Connection Pooling when using sockets



All,

.NET Web Service needs to talk to third party software through
TCP/IP sockets.

Do we have any .Net Framework in place which can do a TCP/IP
Socket connection?

Any thoughts on how to do a connection pooling when using
sockets?

http

CLIENT -----àWEBSERVICE

| HTTP

CONNECTIONPOOL

MANAGER

THIRD PARTY SOFTWARE

written in c/c++

TCP/IP


Thanks,

Vinod
Nov 18 '05 #1
2 2316
Hi Vinod,
Thanks for posting in the community!
From your description, you are looking for the buildin components which
provide the socket programing. Also you'd likte some suggestions on
connection pooling when doing socket programming, yes?
If there is anything I misunderstood, please feel free to let me know.
As for the socket programing, you may refer to the "System.Net" namespace,
most classes there are the buildin components for net programming. And here
are some tech reference on socket programing in dotnet:

#.NET Framework Developer's Guide Sockets
http://msdn.microsoft.com/library/en...ets.asp?frame=
true

#Socket Code Examples
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconsocketcodeexamples.asp

#Using an Asynchronous Server Socket
http://msdn.microsoft.com/library/en...gNon-BlockingS
erverSocket.asp?frame=true

#Using an Asynchronous Client Socket
http://msdn.microsoft.com/library/en...gNon-blockingC
lientSocket.asp?frame=true

As for pooling, the dotnet also provide the ThreadPool component which
provide the buildin thread pool functions. That'll ease our works when
implement pooling for our custom tasks such as net work connections. Here
are some of the tech referenes in MSDN and a tech article on internet.

#Thread Pooling
http://msdn.microsoft.com/library/en...adPooling.asp?
frame=true

#Programming the Thread Pool in the .NET Framework
http://msdn.microsoft.com/library/en...pool.asp?frame
=true
#A Simple .NET TCP Socket Component
http://www.codeproject.com/csharp/XYNetSocket.asp
Hope these help.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2
Hi Vinod,
Have you had a chance to check out my suggestions in the last reply or have
you got any furthere ideas on this issue? If you need any further
assistance, please feel free to post here.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Rob Nicholson | last post by:
We're getting an occasional occurrence of the following error when two users try and open the same record in our ASP.NET app: "There is already an open DataReader associated with this Connection...
7
by: Mrinal Kamboj | last post by:
Hi , I am using OracleConnection object from Oracle ODP.net provider and following is the behaviour which i am finding bit strange : To start with my argument is based on followings facts : ...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
2
by: JimLad | last post by:
Hi, In an existing ASP/ASP.NET 1.1 app running on IIS 6, I need to RELIABLY pass the logged in username through to the SQL Server 2000 database for auditing purposes. The current method is...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
3
by: fniles | last post by:
In the Windows application (using VB.NET 2005) I use connection pooling like the following: In the main form load I open a connection using a connection string that I stored in a global variable...
0
viswarajan
by: viswarajan | last post by:
Introduction This article is to go in deep in dome key features in the ADO.NET 2 which was shipped with VS 2005. In this article I will go trough one of the key features which is the Connection...
2
by: Tony Johansson | last post by:
Hello! How does this connection pool function actually ? As I have been told is that when the connection is returned to the pool the connection to the database is still open. What you do is that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.