java socket

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • niko

    #1

    java socket

    I need to write a java program that is waiting till a socket client
    connects to it, after a certain time, about 15sec the client will
    disconnect or the java app will disconnect the client. Right after
    that a new connection to the same port should be available that a
    client could connect to it. However a client is connected it will
    receive data from the java app.

    My question is how can I initiate a socket server which is allways on
    and wayting for a connection, as soon as the connection brakes up a
    new session will be initiated.

    Thanks in advance
    Niko

    Modern Analytics
  • Ian Shef

    #2
    Re: java socket

    info@nikoh.de (niko) wrote in
    news:84380ff8.0 503090855.11d53 15a@posting.goo gle.com:

    <snip>[color=blue]
    > My question is how can I initiate a socket server which is allways on
    > and wayting for a connection, as soon as the connection brakes up a
    > new session will be initiated.[/color]
    <snip>

    See:

    http://java.sun.com/docs/books/tutor...ing/index.html

    and especially:

    http://java.sun.com/docs/books/tutor...entServer.html

    --
    Ian Shef 805/F6 * These are my personal opinions
    Raytheon Company * and not those of my employer.
    PO Box 11337 *
    Tucson, AZ 85734-1337 *

    Comment

    Working...