예제 #1
0
 public async Task <int> SendMessageAsync(ModbusTcpAdu message)
 {
     return(await socket.SendAsync(new ArraySegment <byte>(message.GetBytes()), SocketFlags.None));
 }
예제 #2
0
 public int SendMessage(ModbusTcpAdu message)
 {
     return(socket.Send(message.GetBytes()));
 }