SNMP TRAP RECIEVE

Feb 21 2007 9:48 AM
Hello, i recieve a snmp trap per udp listener on port 162. i get a byte stream and the byte stream are encoded by ascii convertion to a string. this is the code: UdpClient listener = new UdpClient(listenPort); IPEndPoint groupEP = new IPEndPoint(IPAddress.Any, 162); while (run == true) { try { byte[] bytes = listener.Receive(ref groupEP); String dataReceived = System.Text.Encoding.ASCII.GetString(bytes); AddMessage(dataReceived); } catch (Exception er) { MessageBox.Show(er.Message.ToString()); } } the problem is that i become something like ("""(((??????) in the string. I search nearly one day to find something in the web who show's how snmptrap is coded or what i must do to get on the data. Do any one know how this problem can be solved ? thanks regards euro