예제 #1
0
파일: Port.cs 프로젝트: moto2002/Avocat
 // 发送无回执消息
 public void Send(string op, Action <IWriteableBuffer> fun)
 {
     NetUtils.Send(op, compName, fun, conn);
 }
예제 #2
0
파일: Port.cs 프로젝트: moto2002/Avocat
 // 发送请求并等待请求结果
 public void Request(string op, Action <IWriteableBuffer> fun, Action <IReadableBuffer> callback, Action <bool> onExpired)
 {
     NetUtils.Request(op, compName, fun, callback, onExpired, conn);
 }