Where to start? How much do you know about UDP? If you already know the basics about UDP, start by reading the documentation on the classes DatagramSocket and DatagramPacket in Sun's (now Oracle's) online Javadocs. Once you read read that, you should be in a good position to understand the sample code out there for things like doing a UDP Echo server, e.g. http://www.java2s.com/Code/Java/Network-Protocol/AnechoserverusingUDPsockets.htm.
NB: in the Java socket API, a 'socket' is not as general an object as a true BSD socket. The discrepancies are even more noticeable with the DatagramSocket. So don't expect too much similarity to a BSD socket when reading the above references. On Aug 2, 11:38 pm, Perumss Naren <[email protected]> wrote: > Hi, > > I have a task that need to make a udp Socket connection to find the > printer device which connected in the socket can any one help how to start. > Thanks in Advance!! > > -- > Regards, > > Perumal.N -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

