TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
axelsteppe
NA
7
0
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
Reply
Answers (
0
)
DateTime application
Interfaces and Abstract Classes