Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

wireless and wired sending

 
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
 
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.
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic