• Post Reply Bookmark Topic Watch Topic
  • New Topic

wireless and wired sending  RSS feed

 
sara adam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everybody,
i am sending data in a java application from one PC to another using wired network, and everything is working fine, but when i tried to send the same data ...files for example or any other data.. i dont recieve EVERYTHING and parts recieved not in the same order as they were send.. as if the sockets were closed after sending some packets, does sending data from one pc to another over wireless network differ from sending it using wired one, please help me to solve this problem,
thanx
Sara
 
Ankur Srivastava
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using DatagramSocket? It seems the problem is that you are using UDP protocol instead of TCP/IP.
 
sara adam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, im using sockets only..
thanx
 
Ankur Srivastava
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then just see if you are using this constructor for creation of socket Socket(InetAddress host, int port, boolean stream) with stream set to false in which case it will create a DatagramSocket. It has been deprecated in 1.4 but just wanted to check if that is the case beacuse your problem seems because of use of UDP protocol only.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!