• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Datagram lost in network

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i am doing client to client communication , in which one client is having applet witch is continuously listing on one datagram socket and another application is eclipse swt application which is sending messages to multiple applet based client through datagram socket,

the problem is that i am able to get message is applet when i runs both application on same system, but when i try to run the applet in one system and swt client in another i am able to send the message through swt system , but applet still keeps listening on particular port not gettting any message.

can someone help to solve the problem......
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Applets can't connect to any host other than the one they were downloaded from. Applet Security Restrictions
 
t satish
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But it is an datagram socket.....can't datagram socket listen on particular port on client system in applet and isn't it possible to send the message to that port from different client. is there any other ways to accomplish the task.

if we make a signed applet i guess we can accoplish the task.

???
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by t satish:
But it is an datagram socket


It is still a network connection. Datagram sockets simply use UDP rather than the TCP that java.net.Socket and ServerSocket use.

Originally posted by t satish:

if we make a signed applet i guess we can accoplish the task.


Yes.
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic