Using SOcket programing to create multiple clients conatcting a single server

Discussion in 'Java' started by zigbeedeep, Nov 11, 2006.

  1. zigbeedeep

    zigbeedeep Guest


    How do I decide the port numbers for each of the client.

    Is a multiclient possible if possible how?

    Thank You
    zigbeedeep, Nov 11, 2006
    1. Advertisements

  2. zigbeedeep

    Karl Uppiano Guest

    This is all the information I ever needed to do this:

    If you need really high performance:

    I had to search for tutorials and sample code before I
    could implement NIO sockets. But 63 connections on a single thread is
    Karl Uppiano, Nov 11, 2006
    1. Advertisements

  3. zigbeedeep

    Lew Guest

    ServerSocket on the server binds to a specific port, say 2048 for example.

    Each client will attempt to connect to "server:2048"; they all connect to the
    same host port.

    The server may spawn threads, one per client, to handle individual connections
    for performance's sake.

    - Lew
    Lew, Nov 12, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.