Article View: borland.public.jbuilder.java.language
Article #7536Re: Chat applet
From: Russell
Date: Tue, 05 Jun 2001 07:59
Date: Tue, 05 Jun 2001 07:59
29 lines
2005 bytes
2005 bytes
Thanks , is ok now.
"John McGrath [TeamB]" wrote:
>
> On Mon, 04 Jun 2001 11:40:02 +0800, Russell wrote:
>
> > I am execute the client app then the server apps. However
> > the server apps always hangs on accept() method.
> >
> > I am run the client by --> new Client("db0",5000); --->
> > the client code is socket = new Socket( host, port );
>
> It is supposed to "hang" until it gets a connection. Are you sure that
> your client is actually making a connection.
>
> Try using a telnet application to connect to the port. Generally you
> can do that with a command like "telnet host port", but check the docs
> for telnet on your machine. If your wire protocol consists of text,
> you should be able to debug your server using telnet as your client.
> That can make it easier to see what is going on.
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
> http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3B1C9169.A4033F2D@cesmainternational.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.nibble.net!news-in.nibble.net!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<3B1B0312.800770AD@cesmainternational.com> <MPG.15864b3be22e76a598a261@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,770f043c19ec820d X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-05 01:12:57 PST Message-ID: <3B1C9169.A4033F2D@cesmainternational.com> Date: Tue, 05 Jun 2001 15:59:37 +0800 From: Russell <weetat@cesmainternational.com> X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.13-0.13 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Chat applet References: <3B1B0312.800770AD@cesmainternational.com> <MPG.15864b3be22e76a598a261@forums.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 203.126.155.39 X-Trace: dnews 991727995 203.126.155.39 (5 Jun 2001 00:59:55 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-out.nibble.net!news-in.nibble.net!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews