Re: socket debug
Re: socket debug
- Subject: Re: socket debug
- From: Quinn <email@hidden>
- Date: Fri, 6 Dec 2002 13:00:25 +0000
At 18:48 +0000 5/12/02, Michael Marti wrote:
I have a problem with tcp sockets under OS 10.2, that I need to debug. I
found that there is a option for sockets called SO_DEBUG. I can set this
option using setsockopt(2). I don't know where the debug output is written
to.
Maybe there is another way to debug sockets?
You can read SO_DEBUG output using "trpt". See "man trpt" for more
info. Also, read all about it in "TCP/IP Illustrated Volume 2", pp
916-920. I haven't tried "trpt" on Mac OS X, so YMMV.
What sort of socket are you using? If you're using a standard TCP
socket to communicate with a remote host, it might be easier to look
at the data going by with a packet trace.
<
http://developer.apple.com/qa/qa2001/qa1176.html>
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
References: | |
| >socket debug (From: Michael Marti <email@hidden>) |