UDP protocol & Object

From: SpitFire (max00_at_net.hrREMOVENOSPAM)
Date: 12/28/03

  • Next message: Tony Morris: "Re: simple beginners question"
    Date: Sun, 28 Dec 2003 22:36:37 +0100
    
    

    I need little help with Java and UDP protocol.

    Can someone give me an example of how can I send a object by UDP protocol.
    Only usefull method is

    DatagramPacket(byte[] buf, int length, InetAddress address, int port)

    but how to send object ( Data ) through UDP.

    Thanks.


  • Next message: Tony Morris: "Re: simple beginners question"

    Relevant Pages

    • Re: UDP protocol & Object
      ... > I need little help with Java and UDP protocol. ... > Can someone give me an example of how can I send a object by UDP protocol. ... use the sendmethod to send a DatagramPacket on this socket: ... DatagramPacket response = new DatagramPacket ...
      (comp.lang.java)
    • Re: UDP protocol & Object
      ... > I need little help with Java and UDP protocol. ... > Can someone give me an example of how can I send a object by UDP protocol. ... That's what object serialization was designed for. ... Jared Dykstra ...
      (comp.lang.java)