Re: UDP protocol & Object

From: Jared Dykstra (dyksjare_at_hotmail.com)
Date: 12/30/03

  • Next message: Jared Dykstra: "Re: Anyone know about ActiveX in Java?"
    Date: 29 Dec 2003 21:34:05 -0800
    
    

    "SpitFire" <max00@net.hrREMOVENOSPAM> wrote in message news:<bsni83$jc4$1@bagan.srce.hr>...
    > 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.

    Serialize the object. That's what object serialization was designed for.
    http://www.acm.org/crossroads/xrds4-2/serial.html

    ---
    Jared Dykstra
    http://www.bork.org/~jared
    

  • Next message: Jared Dykstra: "Re: Anyone know about ActiveX in Java?"

    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)
    • 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. ... Only usefull method is ... DatagramPacket(bytebuf, int length, InetAddress address, int port) ...
      (comp.lang.java)