Beispiel #1
0
 public void Close()
 {
     if (NetWorkStream != null)
     {
         NetWorkStream.Close();
     }
     if (Client != null)
     {
         Client.Client.Close();
     }
 }
 public PacketListnerServer(MemoryReader _memread)
 {
     memRead       = _memread;
     TibiaHandle   = _memread.Handle;
     networkStream = new NetWorkStream(_memread);
 }
Beispiel #3
0
 public async Task SendAsync(dataStruct ds)
 {
     byte[] b = ds.GetStream();
     await NetWorkStream.WriteAsync(b, 0, b.Length);
 }
 public PacketListner(MemoryReader _memread)
 {
     memRead = _memread;
     TibiaHandle = _memread.Handle;
     networkStream = new NetWorkStream(_memread);
 }
Beispiel #5
0
        public void Send(dataStruct ds)
        {
            byte[] b = ds.GetStream();

            NetWorkStream.Write(b, 0, b.Length);
        }