Article View: borland.public.jbuilder.java.language
Article #14582Re: How to get an event from a socket
From: Dillan Fernando
Date: Thu, 26 Aug 1999 00:00
Date: Thu, 26 Aug 1999 00:00
44 lines
1418 bytes
1418 bytes
Hi, I assume you mean a ServerSocket. well.. the serversocket waits until a connection is made. That means once you execute the serversocket, you will not get the control until a connection is made to that port. So you can call whtever the method you want right after that. eg. Socket soc = serverSocket.accept(); myClass.myFunction(soc); or you can implement you own event. jBuilder2 help has a real good doc. on how to implement your own event. Hope this helps. Regards Dillan jeremy LE DEAN wrote in message <37C6973B.97FC1A48@sinfor.fr>... >Hi everybody, > >I'd like to know how to get a socket event: > >when a client is connected on my socket, I would like to generate an >event . >This event sould be detected by an other application. > >Do you have an idea? > >Thank you for your help. > > >A poor frenchi ' qui a du mal � parler anglais !' > >
Technical Details
Message-ID:
<7q6msk$rlh21@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37C6973B.97FC1A48@sinfor.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,9fab977f29aeabf5,start X-Google-Attributes: gidf74b3,public From: "Dillan Fernando" <dillan@geocities.com> Subject: Re: How to get an event from a socket Date: 1999/08/26 Message-ID: <7q6msk$rlh21@forums.borland.com> X-Deja-AN: 517981077 References: <37C6973B.97FC1A48@sinfor.fr> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Newsgroups: borland.public.jbuilder.java.language