ToCArray() public method

our message pro
public ToCArray ( ) : byte[]
return byte[]
Example #1
0
 public void Send(Msg msg)
 {
     if (client != null && client.Connected)
     {
         Send(msg.ToCArray());
     }
     else
     {
         sendQueue.Add(msg);
     }
 }
Example #2
0
 static public int ToCArray(IntPtr l)
 {
     try {
         Hugula.Net.Msg self = (Hugula.Net.Msg)checkSelf(l);
         var            ret  = self.ToCArray();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #3
0
 public void Send(Msg msg)
 {
     if (client != null && client.Connected)
         Send(msg.ToCArray());
     else
         sendQueue.Add(msg);
 }