Article View: borland.public.jbuilder.java.api
Article #1599Re: Creating a localhosts socket
From: J. Deas
Date: Sun, 04 Nov 2001 04:26
Date: Sun, 04 Nov 2001 04:26
37 lines
2219 bytes
2219 bytes
"Joi Ellis [TeamB]" <joi@aravox.com> wrote in message news:3be41c79_1@dnews... > J. Deas <jdeas@jadsystems.com> wrote: > > How can I create a local socket? I am trying to write an interface for > > plug-in modules. > > The simplest way seemed to be to create a local socket to listen for > > plugins. > > > I have tried to following > > > > server = new Socket(remoteHosts,port); > > plugInManager = new Socket(server.getLocalAddress(),4000); > > > What am I doing wrong? Is there an easier way to create a flexable plug-in > > interface for java 1.1? > > I thought if one wanted a server to have a listen socket waiting for > incoming connections, the server had to use a ServerSocket. It's the > clients that use Socket to open connections to ServerSockets. > > That's how I understand and use them, anyway... but that's Java 1.2+, too. > Does Java 1.1 not have ServerSockets? > > > > -- > Joi Ellis (TeamB) http://www.teamb.com/ > No direct email, please. > For best results, post on news server newsgroups.borland.com! > Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html > Only posts which violate the rules in guide.html are subject to cancelation. Yes it does. My mistake (too too late that night!). Thanks for the reply
Technical Details
Message-ID:
<3be4c42e_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3be37064_2@dnews> <3be41c79_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,93dad341e284c96c X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-03 20:39:07 PST Reply-To: "J. Deas" <jdeas@jadsystems.com> From: "J. Deas" <jdeas@jadsystems.com> Newsgroups: borland.public.jbuilder.java.api References: <3be37064_2@dnews> <3be41c79_1@dnews> Subject: Re: Creating a localhosts socket Date: Sat, 3 Nov 2001 20:26:13 -0800 Lines: 40 Organization: JAD Systems X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 207.105.157.95 Message-ID: <3be4c42e_2@dnews> X-Trace: dnews 1004848174 207.105.157.95 (3 Nov 2001 20:29:34 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews