@@ -0,0 +1,1850 @@
+import java.net.DatagramPacket;%0Aimport java.net.DatagramSocket;%0Aimport java.net.InetAddress;%0A%0A/**%0A * %3Ch1%3EDSender%3C/h1%3E%0A * The DSender class creates a DatagramPacket containing a String message,%0A * that is then sent to an IP address (String representation of the IP address)%0A * through a specific port. These three arguments are parameters %0A * of the DSender class constructor.%0A * %0A * @author Brandon McCoy%0A * @date 05/09/2016%0A * %0A */%0A%0A/* The range of port numbers from 1024 to 49151 are the registered ports. %0A * They are assigned by IANA for specific service upon application by %0A * a requesting entity.%0A * %0A * 666  is the official Doom fps socket%0A * 2302 is the unofficial Halo: Combat Evolved multiplayer socket%0A * 3071 is the unofficial Call of Duty Black Ops socket%0A * 3659%09is the unofficial Battlefield 4 socket%0A * %0A * https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers%0A * */%0A%0Apublic class DSender %7B%0A%09%0A%09/**%0A%09 * %3Cb%3EDSender constructor%3C/b%3E %0A%09 * %3Cp%3E%0A%09 * %3Cb%3ENote:%3C/b%3E DatagramPacket delivery is not guaranteed.%0A%09 * %0A%09 * @param String mMessage - The message to be sent to the server%0A%09 * @param String mInetAddressName - The name of the host%0A%09 * @param int mPort - The port the DatagramPacket is sent on%0A%09 * @throws Exception - %0A%09 */%0A%09public DSender(String mMessage, String mInetAddressName, int mPort) %0A%09%09%09throws Exception %7B%0A%09%09%0A%09%09DatagramSocket ds = new DatagramSocket(mPort);%0A%09%09%0A%09%09DatagramPacket dp = new DatagramPacket(mMessage.getBytes(), %0A%09%09%09%09mMessage.length(), %0A%09%09%09%09InetAddress.getByName(mInetAddressName), %0A%09%09%09%09mPort);%0A%09%09%0A%09%09ds.send(dp);%0A%09%09%0A%09%09ds.close();%0A%09%7D%0A%09%0A%09// TODO main function will be omitted%0A%09public static void main(String%5B%5D args) throws Exception %7B%0A%09%09InetAddress ip = InetAddress.getLocalHost();%0A%09%09String strIPName = ip.getHostName();%0A%09%09//System.out.println(ip.toString());%0A%09%09new DSender(%22Whats up?%22, strIPName, 3659);%0A%09%7D%0A%7D%0A

Create DSender.java