joining clients in java

Go down

joining clients in java

Post  amazon on 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

View user profile

Back to top Go down

@socket programming in c

Post  scorpion on 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

View user profile

Back to top Go down

Back to top

- Similar topics

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