Article View: borland.public.jbuilder.java.api
Article #1598Re: Creating a localhosts socket
From: Joi Ellis [TeamB]
Date: Sat, 03 Nov 2001 16:34
Date: Sat, 03 Nov 2001 16:34
30 lines
1832 bytes
1832 bytes
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.
Technical Details
Message-ID:
<3be41c79_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mailReferences:
<3be37064_2@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 08:35:15 PST
Message-ID: <3be41c79_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Creating a localhosts socket
Newsgroups: borland.public.jbuilder.java.api
References: <3be37064_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 3 Nov 2001 08:34:01 -0800
X-Trace: dnews 1004805241 209.46.41.66 (3 Nov 2001 08:34:01 -0800)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail