Reputation: 9
how do I get this code (tcp) to udp in java? Thanks.
ServerSocket servsock2 = new ServerSocket(13367);
Socket sock = servsock2.accept();
System.out.println("Client connected.");
OutputStream os = sock2.getOutputStream();
while(true){
os.write(int_value);
}
Upvotes: 0
Views: 5071
Reputation: 500893
The following Java tutorial should get you started: All About Datagrams.
Upvotes: 6