Method | Description | |
---|---|---|
GetPacket ( ) : |
Gets a packet from the server and returns it.
|
|
Protocol ( string server, int port ) : System |
Initialize a new instance of Protocol.
|
|
SendPacket ( |
Sends the given packet to the connected Minecraft server.
|
public Protocol ( string server, int port ) : System | ||
server | string | Server address to connect to. |
port | int | Server port. |
return | System |
public SendPacket ( |
||
packet | The packet to send | |
return | void |