Computer Club MNNIT
Would you like to react to this message? Create an account in a few clicks or log in to continue.

joining clients in java

2 posters

Go down

joining clients in java Empty joining clients in java

Post  amazon Sun Aug 10, 2008 10:59 am

how to connect two clients through a server in java
(for text chatting of course....).
have used Socket and ServerSocket
I am able to connect multiple clients with server but not client with client!
thanx

amazon

Posts : 13
Join date : 2008-08-10

Back to top Go down

joining clients in java Empty @socket programming in c

Post  scorpion Mon Aug 11, 2008 9:42 am

using socket programming in c..its possible to connect client with client..infact its not just two clients gettin connected to one another...its the basic server client application only..... but the clients exchange their position of becoming the server and den client one by one..so it looks as if both are clients...

when we make a chat program using udp there is not dedicated connection between two clients...and its like multiple clients can connect to each other at the same time...and even if one of the clients logs off still the other clients continue to send and recieve messages ....

so try using udp if u r using tcp ...

scorpion

Posts : 1
Join date : 2008-08-11

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum