/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package campomat;

import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

/**
 *
 * @author awolf
 */
public class Player {

    private static int POR_SER = 4567;
    private static int MAX_BUF = 100;
    private static String SERVER_IP = "localhost";
    private static int SERVER_PORT = 4567;

    public static void main(String[] args) {
        try {
            byte data[] = new byte[MAX_BUF];
            InetAddress cli = InetAddress.getByName(SERVER_IP);

            String mens = "baixo";
            data = mens.getBytes();
            DatagramSocket socket = new DatagramSocket();
            DatagramPacket pack = new DatagramPacket(data, 
                    mens.length(), cli, SERVER_PORT);
            socket.send(pack);
        } catch (Exception e) {
            e.printStackTrace();
        }
        
    }
}
