🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages Started by Rig Fri, 19 Mar 2004 18:01
How to "listen" to sockets ?
#1161
Author: Rig
Date: Fri, 19 Mar 2004 18:01
14 lines
1625 bytes
Hi Guys,

Just a quick one ... I am having trouble listening to sockets in Java.

I am writing a simple chat client, and I am using JBuilder 9. I am fine
using events etc, but I am having trouble "listening" to the incoming
connection.

How would I do this? Is a timer the best option that checks, say, every 1
second for new data on the port - or is there a more efficient way?

Many thanks for your help.

Andrew.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads