/// <summary> /// Constructor. Initializes and binds the Socket class /// </summary> public UdpTransport(jfriedman.Snmp.Transport.MessengerSession messengerSession) { this._session = messengerSession; _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Any, 0); EndPoint ep = (EndPoint)ipEndPoint; _socket.Bind(ep); }
/// <summary> /// Constructor. Initializes and binds the Socket class /// </summary> public TcpTransport(jfriedman.Snmp.Transport.MessengerSession messengerSession) { this._session = messengerSession; }