예제 #1
0
 //Mensaje recibido del server
 private static void OnSend(SocketWriter write, byte[] data)
 {
     //Debug.Log ("Mensaje recibido del serverr: " + message + " length of packets " + packets.Count);
 }
예제 #2
0
 //Error mandando datos del server
 private static void OnErrorWriting(SocketWriter read, System.Exception exception)
 {
     lastErrorMsg = "Sending error: " + exception;
 }
예제 #3
0
 public static void SendData(int dataToSend)
 {
     SocketWriter.Begin(dataToSend, socket, OnSend, OnErrorWriting);
 }