Skip to main content

---PLZZ HELP ME!!!!---

3 replies [Last post]
carnado
Offline
Joined: 2007-08-21
Points: 0

Why i can't send message between two peers...like chatting program...i attach my source code...i hope anyone can show me what the wrong with my source code...

1-JxtaMulticastSocketClient.java will first send message to JxtaMulticastSocketServer.java
2-JxtaMulticastSocketServer.java will display the message
3-JxtaMulticastSocketServer.java will reply the message
4-JxtaMulticastSocketClient.java will display the message
5-JxtaMulticastSocketClient.java will reply the message
6-Repeat step 2 to 5 untill any peer close the connection

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bondolo
Offline
Joined: 2003-06-11
Points: 0

If you are using a personal firewall it is possible that multicast has been disabled on your computer. This is most commonly seen on Windows but also on some Linux and MacOS X machines depending upon configuration.

hamada
Offline
Joined: 2003-06-12
Points: 0

I don't see anything in the code which prevents the message exchange. Are you seeing any messages at all?, is the server started before the client?

carnado
Offline
Joined: 2007-08-21
Points: 0

Yes, server start first...message can send and receive between server and client, but after few times sending and receiving process, i will get an error...