mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 15:22:53 +02:00
Client
- Implememted `sendMessage(Message)`
This commit is contained in:
parent
12883f93db
commit
256369abc5
@ -642,6 +642,22 @@ public class Client : Thread
|
|||||||
sender.sq(encodedMessage);
|
sender.sq(encodedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends a message to the server by enqueuing it on
|
||||||
|
* the client-side send queue
|
||||||
|
*
|
||||||
|
* Params:
|
||||||
|
* message = the message to send
|
||||||
|
*/
|
||||||
|
private void sendMessage(Message message)
|
||||||
|
{
|
||||||
|
/* Encode the message */
|
||||||
|
ubyte[] encodedMessage = message.encode();
|
||||||
|
|
||||||
|
/* Enqueue the message to the send queue */
|
||||||
|
sender.sq(encodedMessage);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disconnect from the IRC server gracefully
|
* Disconnect from the IRC server gracefully
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user