Ejemplo n.º 1
0
        SocketWriter(int code, Socket socket, IncomingWriteHandler writeHandler, IncomingWriteErrorHandler errorHandler = null)
        {
            this.socket       = socket;
            this.writeHandler = writeHandler;
            this.errorHandler = errorHandler;

            BeginSend(code);
        }
Ejemplo n.º 2
0
 /*public static SocketWriter Begin (string code, Socket socket, IncomingWriteHandler writeHandler, IncomingWriteErrorHandler errorHandler = null)
  * {
  *      Debug.Log("Sending " + code + " to NIC (string)");
  *      return new SocketWriter (code,socket, writeHandler, errorHandler);
  * }*/
 public static SocketWriter Begin(byte[] code, Socket socket, IncomingWriteHandler writeHandler, IncomingWriteErrorHandler errorHandler = null)
 {
     Debug.Log("Sending " + System.Text.Encoding.UTF8.GetString(code) + " to NIC (string)");
     return(new SocketWriter(code, socket, writeHandler, errorHandler));
 }
Ejemplo n.º 3
0
        public static SocketWriter Begin(int code, Socket socket, IncomingWriteHandler writeHandler, IncomingWriteErrorHandler errorHandler = null)
        {
//			Debug.Log("Sending " + code + " to NIC (int)");
            return(new SocketWriter(code, socket, writeHandler, errorHandler));
        }