//********************************************************************** //********************************************************************** //********************************************************************** // Configure the socket. public void configure(BaseMsgMonkeyCreator aMonkeyCreator, String aAddress, int aPort) { mMonkey = aMonkeyCreator.createNew(); mUdpClient = new UdpClient(aPort); mIPEndPoint = new IPEndPoint(IPAddress.Parse(aAddress), aPort); Prn.print(Prn.SocketInit2, "UdpRxMsgSocket $ {0,16} : {1}", mIPEndPoint.Address.ToString(), mIPEndPoint.Port); }
//********************************************************************** //********************************************************************** //********************************************************************** // Configure the socket. public void configure(BaseMsgMonkeyCreator aMonkeyCreator, String aAddress, int aPort) { mMonkey = aMonkeyCreator.createNew(); mSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); mIPEndPoint = new IPEndPoint(IPAddress.Parse(aAddress), aPort); Prn.print(Prn.SocketInit2, "UdpTxMsgSocket $ {0,16} : {1}", mIPEndPoint.Address.ToString(), mIPEndPoint.Port); }