Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Managing Socket Connections

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a scenario with I have to make a TCP/IP connection on a specific port to a certain Destination. Is there any specific design pattern for managing connections of such sort, such as connection pooling etc or do we have to manage all those stuff ourself.

Thanks
Shashank
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shashank Tilwalli:
Hi,

I have a scenario with I have to make a TCP/IP connection on a specific port to a certain Destination. Is there any specific design pattern for managing connections of such sort, such as connection pooling etc or do we have to manage all those stuff ourself.

Thanks
Shashank

You wanted to know the design pattern or an implementation of the same?
If design pattern, then, its what you said: connection pool
If implementation: Jakarta commons may give you some.
 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to know whether do we have to manage connections ourself. I mean feature like connection polling, reconnection of drop etc.

I have take a look at Jakarta Commons...
 
Those are the largest trousers in the world! Especially when next to this ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!