/*
        Main method
    */
    public static void Main(string[] args)
    {
        int port_number = 0;
        port_number = Convert.ToInt32(args[0]);

        //Create a transmissor
        Transmissor transmissor = new Transmissor("configuration.txt");

        //This line is listening signals from the transceiver
        transmissor.ConnectToDevice("localhost", port_number);

        //This line is listening responses from the server
        transmissor.listen_response();
    }
 /*
     This method prepares the message
     message (string): the message to be encoding
 */
 private static void PrepareMessage(string message)
 {
     Transmissor transmissor = new Transmissor("configuration.txt");
     var body = Encoding.UTF8.GetBytes(message);
     transmissor.transmit(body);
 }