Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to connect the Tcp client application to multiple socket listener.
Is it is possible to make this type of connection if yes, please explain what can do to perform this.
My scenario is:
I have number of Socket listener and one TCP client, I want Tcp client make connection to all the server and create a bridge between them. so that i will perform data transfer between any socket listener with Tcp Client at any time.
Posted
Updated 5-May-17 1:01am

1 solution

Yes, Its possible.

Performance depends on many factors, if you can be a little more specific on points given below I can help you out.

1. What machine your running and what technology your using to develop the application.
2. How many servers you want to connect in any given point of time.
3. What size of data you will be exchanging.
 
Share this answer
 
Comments
m88120 4-Aug-14 3:06am    
1. What machine your running and what technology your using to develop the application.
Answer : I am using Asp.net with C# for TCP Client and Socket listener code written in Android,Iphone and one main server(The main server code written in Asp.net with c# ).The main server means socket listener.I want To create TcpClient which will create a bridge between this Phone and main server and at any time when server hit the Tcpclient it will provide response to that server.

2. How many servers you want to connect in any given point of time.
Answer : Near about 10 server will connect to one TcpClient.

3. What size of data you will be exchanging.
Answer : I am send json format data and size nor more than 102400 bytes

Brief Detail what i want to create please refer the screen shot
Numbering in the screen shot represent the flow of the application.

1) Mobile application send Ip-Address and Port number to the web api.
2) web Api send that IpAddres and port number to the main server i.e socket listener.
3) The main server i.e socket listener having bridge between product machine and send IPAddress and port number.

Now here is the problem when I create bridge between Product machine and mobile app using Ipaddress and port number the product machine destroy the connection with main server
So I want to create a Tcp Client that shouldn't destroy the connection automaticaly and i will able to send data direct from product machine to Mobile application and visa versa

https://docs.google.com/file/d/0BwI7KDNeRspbOERHR1RPY1Q2cnc/edit[^]
Gautham Prabhu K 5-Aug-14 8:45am    
I was not able view the image in google drive.
I have requested access.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900