Multiple concurrent connections to same socket?
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Multiple concurrent connections to same socket?
by Coccoliso ·
The telnet protocol wants a TCP connection and a continuative bidirectional flow of data then … nUsers=nFlows=nSockets.
On the same or different PC you can open nSockets telnet client that connect to the W5200 nSockets , all open on the same reception telnet port 23 and then depends on the MPU firmware to be able to extricate.
RE: Multiple concurrent connections to same socket?
by pugglewuggle ·
I don’t really understand what you are saying. Are you saying that it is possible but that each concurrent connection consumes one of the 8 “sockets”? Are you saying that you can indeed have multiple TCP connections active at the same time but it just has to be handled in the processor firmware? If that is the case do you have any examples you can refer me to?
RE: Multiple concurrent connections to same socket?
by Coccoliso ·
Primary Socket parms:
The socket is a tube, W5200 has 8 sockets then 8 are the possible streams simultaneously and with “MPU firmware” mean the application that drives the W5200 (aka Arduino, PIC or whatever).
You can use the 8 sockets in TCP as you think one or more in Server mode and one or more in Client mode.
You can put one or more Socket listening on the same or different port number.
You can communicate to something else in client mode with one ore more Socket on the same or different port number.
You can use a socket with UDP protocol in the meantime use another socket with TCP protocol , or IPRAW (PING) or MACRAW (DHCP) .
RE: Multiple concurrent connections to same socket?
by pugglewuggle ·
Okay, so you can have as many sockets listening on the same port as you want (up to 8) and they all operate simultaneously? SO if I wanted to allow up to 3 tcp connections on the same port from different PCs I’d have to use 3 sockets on the same port right?
Is there anywhere in the documentation that describes this functionality?
Do outbound connections/request use a socket?
RE: Multiple concurrent connections to same socket?
by Coccoliso ·
Sorry we posted together … look above.
On Wiznet site you can find c++ general purpose examples like DNS, DHCP or PING that within them use all the features and functions of the W5200 that allow you to use the socket in the various protocols.
In the connection examples of the datasheet there is a pseudo language “macro” fairly exhaustive but if you search the functions already made must know which micro you use.
RE: Multiple concurrent connections to same socket?
by pugglewuggle ·
Thanks, I’m going to try this out and see how it works.
RE: Multiple concurrent connections to same socket?
by pugglewuggle ·
Works great with simultaneous TCP connections for telnet up to 8, then any after are refused. Looks like it’ll work for me!