Results 1 to 2 of 2

Thread: Creating Socket

  1. #1
    ersachinjain is offline Member
    Join Date
    Aug 2009
    Rep Power

    Default Creating Socket


    I want to implement a socket based program. Although I have done a lot of socket based programming in last few months there is one thing that I am confused right now.

    Here is what i want to implement:

    I have this project where I have applets more than 1 and few frames that pop up when a button in the applet is pressed. Now what i am trying to do is that I am forming a new socket with every frame or an applet. Is it the right way of doing technically programing wise i mean. Is it an efficient way of coding. Or should I have just one socket to interact with the server.



  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    San Jose, CA, USA
    Rep Power


    Simple example: Ok, so you have a server. It can handle around a 100 connections using regular sockets. Would rather have a) 100 users each with one socket, or b) 10 users each with an average of 10 sockets?
    My Hobby Project: LegacyClone

Similar Threads

  1. Creating files stopped creating...
    By Dieter in forum Advanced Java
    Replies: 3
    Last Post: 09-26-2009, 12:45 AM
  2. Creating Socket Issue
    By castiel in forum Networking
    Replies: 2
    Last Post: 08-25-2009, 02:34 PM
  3. append response to the request from Socket and write to another socket
    By in forum Networking
    Replies: 3
    Last Post: 04-17-2009, 08:02 PM
  4. help about Socket
    By fahien_akim in forum New To Java
    Replies: 0
    Last Post: 04-16-2009, 11:41 AM
  5. Socket
    By vortex in forum New To Java
    Replies: 2
    Last Post: 05-25-2008, 07:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts