sudden problems with socket connections
Steve Youngs
steve at sxemacs.org
Sun Jun 24 00:50:41 EDT 2007
* Scott Evans <gse at antisleep.com> writes:
> Hi folks,
> I'm one of the maintainers of TNT, an IM client for Emacs.
> (http://tnt.sourceforge.net)
Hi Scott,
I'm the maintainer of Eicq (http://www.eicq.org/), an ICQ client for
(S)XEmacs, we might have some things in common. :-)
> I use TNT daily on two machines, but in the last few days I am unable
> to establish a connection from my laptop. The connection attempt never
> returns an error, but nothing seems to happen.
> If I quit XEmacs, I see the expected process list:
>> Proc Status Buffer Tty Command
>> ---- ------ ------ --- -------
>> toc open (none) (none) network stream connection 5190 at toc.oscar.aol.com
> ...and the "active processes exist; kill them and exit anyway" question.
> Under the hood, we connect to AIM as follows:
> (setq tocstr-process (open-network-stream "toc" nil host port))
Do you employ any kind of debugging in TNT? If not, you could use
something like this... (lifted directly from eicq-v8.el)
(defcustom eicq-v8-debug t
"*Non-nil mean eicq protocol debugging is enabled."
:type 'boolean)
(defvar eicq-debug-buffer "*eicq-debug*")
(defun eicq-v8-debug (msg &rest args)
"Print debug MSG."
(when eicq-v8-debug
(with-current-buffer
(get-buffer-create eicq-debug-buffer)
(save-excursion
(goto-char (point-max))
(insert (apply 'format msg args) "\n")))))
And then it is just a matter of calling `eicq-v8-debug' in any function
that handles incoming packets (your sentinels/filters) and in any
function that sends outgoing packets.
And if that doesn't reveal anything useful, try something like tcpdump[1]
to inspect the packets going in and out.
HTH
Footnotes:
[1] I have no idea if tcpdump builds or runs on win32. I also have no
idea if any alternate packet sniffer exists for win32.
--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| SXEmacs - The only _______ you'll ever need. |
| Fill in the blank, yes, it's THAT good! |
|------------------------------------<steve at sxemacs.org>---|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 312 bytes
Desc: not available
Url : http://calypso.tux.org/pipermail/xemacs-beta/attachments/20070624/2a203fb4/attachment.bin
More information about the XEmacs-Beta
mailing list