Skip to main content
GameDev.net gamedev.net
🔒 Locked

Socket debugging tools

Started by superpig Apr 24, 2003 at 3:24 PM 1 replies 800+ views
Original Post
superpig
superpig
Hey again, I''ve got a problem with my networking subsystem. I''m connecting two sockets together through TCP - one is listening on port 52, and the other connects to 127.0.0.1:52. The connection appears to be OK, but when I send some data through, it just disappears while ''on the wire'' - I get told that the number of bytes sent was indeed equal to the number I gave it, but the SocketReady() call at the other end always returns false. As such, is there anything I can use to view sockets on the local system, connections between them, and packets that are moving around? I''m aware that this isn''t too far from skr1p+ k1dd13 territory, but I don''t want to resort to that kind of program (partly due to my own principles, but partly due to the general unreliability of such software). Superpig - saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse
LostLogic
LostLogic
Download and install WinPCap. Once you have that, you can either use the example source code to view packets or you can download a program like Analyzer to view them in a GUI.


LostLogic
www.lostlogic.com
Author, Multiplayer Game Programming
Author, Strategy Game Programming with Direct X 9 (Not yet released)
LostLogicwww.GamerOutfit.comXBox 360 Community Games Reviews and NewsExisled - 2D/3D Shooter for XBox 360
superpig
superpig
Ah, thanks very much. I''ve actually fixed the problem now (SDLNet *requires* you to add sockets to groups and call CheckSockets() on them, which wasn''t clear from the header - CheckSockets() seems to make the select() call), but I''ll pick up WinPCap anyway.

Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.