• Advertisement
Sign in to follow this  

client to client connection

This topic is 2898 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want client socket should connect with another client socket. I am seeing IP of another client which are connected with server. How will i do for client to client connection for messages.

Share this post


Link to post
Share on other sites
Advertisement
Just call connect() on each client to connect to the address of the client.

Each client will need to be accessibly from every other client though, which is usually difficult to do over the Internet.

Share this post


Link to post
Share on other sites
Hello Evil,

This is being crash.My client is being close with an error message.

And 1 important thing is let suppose 3 client with server are communicating with each other. A 3rd process can sniff data which is fully unknown about these all.This 3rd process has not information of all clients and server.Is there any way to do this ?
I am asking only concept no need coding explanation.
Thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by ryan009ryan
This is being crash.My client is being close with an error message.
That's a bug in your code then. You'll need to debug your code to find out why it's crashing. I can recommend reading this article.

Quote:
Original post by ryan009ryan
And 1 important thing is let suppose 3 client with server are communicating with each other. A 3rd process can sniff data which is fully unknown about these all.This 3rd process has not information of all clients and server.Is there any way to do this ?
If you're asking if there's any way to prevent someone sniffing the data, then no. You can encrypt the data though, so the 3rd party can't understand what's being sent.

Share this post


Link to post
Share on other sites
Yes I am with code seeing article also thanks.

It means if i will not encrypt then someone can sniff data easily OR this is possible to sniff data ?

Share this post


Link to post
Share on other sites
Quote:
Original post by ryan009ryan
It means if i will not encrypt then someone can sniff data easily OR this is possible to sniff data ?
It's always possible to sniff data. You can use a tool like Wireshark to do that over the local network, or any 3rd party that the data passes through can sniff the data.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement