🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7531

Re: Chat applet

#7531
From: John McGrath TeamB
Date: Tue, 05 Jun 2001 07:32
25 lines
1799 bytes
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: <MPG.15864b3be22e76a598a261@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!unlisys!news.snafu.de!fu-berlin.de!news.boerde.de!dnews
References: <3B1B0312.800770AD@cesmainternational.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 00:41:43 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Chat applet
Date: Tue, 5 Jun 2001 03:32:50 -0400
Message-ID: <MPG.15864b3be22e76a598a261@forums.borland.com>
References: <3B1B0312.800770AD@cesmainternational.com>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 991726368 209.92.40.60 (5 Jun 2001 00:32:48 -0700)
Lines: 25
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!unlisys!news.snafu.de!fu-berlin.de!news.boerde.de!dnews