tags:

views:

66

answers:

5

Currently I am developing an online game using sockets. I would like to know some way to debug whatever it send or receive.

I remember when I played ragnarok, there was a program that detect the sockets that you receive and send, and you could edit them and send again.

I would like to find a program like this, for debugging purporses only.

A: 

Network Monitor

ChaosPandion
Does it allows to view, edit and send again?
M28
Why would you want to do this? You should debug in code not in TCP packets.
ChaosPandion
It is detecting things like "..) E..Ð\¶v..E..,9¢@..Õ¡À¨.]®uô.3.ýø.¨Ù,.ËôP.úúë¦....[", I am pretty sure I am not sending it :O
M28
Oh, I would like to send again because I need to know which is the right socket
M28
Yes, you are. It is simply displaying the data as Unicode characters.
ChaosPandion
:| How can I guess which is the right decoding type?
M28
Are you sending text? I would think you are sending binary objects to another game client.
ChaosPandion
No, I am using an API to send it, I don't know how it is sending.
M28
+4  A: 

The best network monitor tool available is Wireshark

jesup
A: 

Wireshark is a great tool for viewing packets and you can even write your own dissectors for custom packet types.

If you need to somehow modify the packets I would probably try making a small app that runs in the middle and just forwards along any packets it receives. You could then debug in that app, or modify the packets however you want.

Dolphin
Some other guy suggested it, I'll try it :D
M28
A: 

Wireshark should work well for reading the network.

You'll need another tool to write arbitrary data to the network. Netcat is perhaps the most awesome such tool available, but it's a little rough for those new to networking. I also found a few GUI-based alternatives dedicated to packet building from Engage Security, SoftPerfect Research and Colasoft.

ladenedge
A: 

I found a very useful tool called "WPE Pro", it allows me to edit and send sockets.

M28