Can I use one Winsock control for both Client and Server whichever it turns out to be?
I want two apps both able to connect to each other and listen for a connection from the other side
Printable View
Can I use one Winsock control for both Client and Server whichever it turns out to be?
I want two apps both able to connect to each other and listen for a connection from the other side
If the Winsock control is listening then it cannot connect, and vice versa. But it is possible to flip between modes of operation.
Here is one I had lying around:
When I click on your link I get following message:
File 'Unicode1on1 Chat.zip' appears malicious
Interesting, since it contains nothing but source code.
Use winsock for the client, and winsock with an Index of 0 for the listening server. Make the server load a new winsock for each connection. That's how you accept multiple connections.
And it says it's malicious because it's a vb extension. I have Chrome and it does that to me every time.
I already know that but that wasn't my question. It's not for multiple connections; it's only for two-way communication where either side can be either the client or the server depending on who connects to who. I was just wondering if that can be done using only one Winsock per side instead of two Winsocks per side.
Sheesh.
Glad you finally got through the screening software at your end.