Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ClientIPAddress = IncomingPacket.getAddress();
- ClientPort = IncomingPacket.getPort();
- OutToClientSocket = new DatagramSocket();
- DatagramPacket PacketToClient = new DatagramPacket(sendBuffer, sendBuffer.length, ClientIPAddress, ClientPort);
- OutToClientSocket.send(PacketToClient);
- ServerIP = InetAddress.getByName(MachineName);
- DatagramPacket IncomingPacket = new DatagramPacket(buf, buf.length);
- MySocket.receive(IncomingPacket);
- buf = IncomingPacket.getData();
- ...
Add Comment
Please, Sign In to add comment