public int Write(Packet packet) { byte[] buffer = Protocol.StructureToByteArray <Packet>(packet); return(Write(buffer)); }
public void Init() { this.ID = Protocol.StartSession(this); Command.GetCapability(this); this.IsOpen = true; }