Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    1,918

    Re: one java progarm handle two socket connection

    Do a search for code that uses Sockets.

    When a method that is receiving input over a socket gets data, it could call another method and pass it the input it received.
  2. Replies
    5
    Views
    1,918

    Re: one java progarm handle two socket connection

    When the Socket connects you can get I/O streams from the socket object and read from that. Look at the API doc for the methods to get the streams.
  3. Replies
    5
    Views
    1,918

    Re: one java progarm handle two socket connection

    Is the program to work as a server or as a client?
    You can use more than one ServerSocket or Socket statement in your program.
Results 1 to 3 of 3