public void sendMesg(byte[] buf, TCPSendType tcpSend) { if (tcpSend == TCPSendType.PUTONG) { sendMesg(buf); } else if (tcpSend == TCPSendType.FORWORD) { try { if (m_socket != null) { m_socket.SendOnlineMessage(buf); } return; Dictionary <string, Socket> forwardDictCache = new Dictionary <string, Socket>(forwardDict); //缓存一个地址出来 foreach (var Item in forwardDictCache) { try { Item.Value.Send(buf); } catch (SocketException e) { break; } } } catch (Exception e) { Debug.Write("TCPServer.sendMesg.." + e.Message); FileModel.getFlModel().setErrorData("<<<<TCPServer.sendMesg.." + e.Message + ">>>>\r\n"); } } }
public void sendMesg(byte[] buf, TCPSendType tcpSend) { }