Sending Information Over the Internet - - meh...?

is there any simple way of telling JVM to listen to port X, and is there a way of telling JVM to send a UDP packet to "thisIP" through "thisPort" with "thisData"?

maybe some built in object that has a constructor like:

udpPacket(String thisIP, int thisPort, String thisData){}

and then a "send()" method?

if not could someone throw up some sorta common IP or TCP class or whatever would b neccesary to simply send and recieve text over the innerwebz? :P

[484 byte] By [micronXDXDa] at [2007-11-27 11:21:50]
# 1

http://java.sun.com/docs/books/tutorial/networking/sockets/index.html

jverda at 2007-7-29 14:51:23 > top of Java-index,Java Essentials,New To Java...
# 2

http://www.google.com/search?hl=en&q=java+udp

TuringPesta at 2007-7-29 14:51:23 > top of Java-index,Java Essentials,New To Java...