C# Class Pdelvo.Minecraft.Proxy.Library.Connection.ConnectionExtensions

Provides extension methods to use the IProxyExtensions simpler
Exibir arquivo Open project: pdelvo/Pdelvo.Minecraft.Proxy

Public Methods

Method Description
SendClientPacket ( this connection, Packet packet ) : void

Send a packet to the client end point of the IProxyConnection

SendServerPacket ( this connection, Packet packet ) : void

Send a packet to the server end point of the IProxyConnection

Method Details

SendClientPacket() public static method

Send a packet to the client end point of the IProxyConnection
public static SendClientPacket ( this connection, Packet packet ) : void
connection this The connection
packet Pdelvo.Minecraft.Protocol.Packets.Packet The packet which should be sent
return void

SendServerPacket() public static method

Send a packet to the server end point of the IProxyConnection
public static SendServerPacket ( this connection, Packet packet ) : void
connection this The connection
packet Pdelvo.Minecraft.Protocol.Packets.Packet The packet which should be sent
return void