How can I connect many client in  one server ?

Hello, My name is Fabio, i live in Brazil.
I need that two or more conect the ane server socket.
Who can help me ?

Hello, My name is Fabio, i live in Brazil.
I need that two or more conect the ane server
socket.
Who can help me ?Do you mean the common idiom?
// server code
while (true){
  Socket s = serverSocket.accept();
  new Thread(new ClientHandler(s)).start();
class ClientHandler implements Runnable{
  Socket soc;
  public ClientHandler(Socket so){
    soc = so;
  public void run(){
    // do io using soc's io streams
}

Similar Messages

  • How can I open many files in one window?

    how can I open many files in one window?

    Well when i do that, the fonts kinda stays whereas the size of the poster shrinks.
    But thanks for the help

  • How can I treat many tables with one handler(?) ?

    Hello~
    I am applying BDB to my embbeded system not rich in resource.
    Some *.db files are called frequently.
    But, Opening a *.db file [db_create(&dbp, NULL, 0) AND dbp->open] takes a long time in BDB
    So, I loaded this functions onto a booting module to call opening functions just one time.
    And all D/B handlers(?) are loaded in all run time
    But, a D/B handler takes about 360Kbytes. And there are too many *.db files(10) where a table is
    How can I treat many tables with one handler(?) ?
    Or
    If you have the most efficient way to call openning functions just one time, please tell me
    Thank you

    Hello,
    Opening the database handles is expensive due to
    opening a file on disk. Is it possible for the application
    to use in-memory dbs? Otherwise is there a way for the application
    to cache the DB handles and reduce the overhead associated with
    opening and closing them?
    Thank you,
    Sandra

  • How can you move the objects from one server to another?

    how can you move the objects from one server to another?

    Hi,
    Collecting objects for Transporting
    1. rsa1->transport connection
    2. left panel choose 'object type', middle panel choose 'infocube' and 'select objects'
    3. then choose your infocube and 'transfer'
    4. will go to right panel, choose collection mode 'manual' and grouping only 'necessary objects'
    5. after objects collection finished, create request
    6. If they are $TMP, then change the package.
    7. When you click the Save on the change package, it will prompt for transport. Here you can provide an existing open transport request number, or if you like here itself you can create a new one.
    8. You can check the request in SE09 to confirm.
    Releasing Transport Request  
    Lets say you are transporting from BWD to BWQ
    Step 1: In BWD go to TCode SE10
    Step 2: Find the request and release it (Truck Icon or option can be found by right click on request #)
    Note: First release the child request and then the parent request
    Steps below are to import transport (generally done by basis )
    Step 1: In BWQ go to Tcode STMS
    Step 2: Click on Import queue button
    Step 3: Double Click on the line which says BWQ (or the system into which transport has to be imported)
    Step 4: Click on refresh button
    Step 5: High light the trasnport request and import it (using the truck icon)
    Transport
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b5/1d733b73a8f706e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/0b/5ee7377a98c17fe10000009b38f842/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/224381ad-0701-0010-dcb5-d74236082bff
    Hope this helps.
    thanks,
    JituK

  • How can SQLDeveloper connect to 10g DB on server but UI cannot

    How can SQLDeveloper connect to 10g DB on server but the User Interface on local laptop cannot? What does the UI need that SQL Developer doesn't need?

    What kind of UI are you talking about?
    SQL Developer can use different type of connection method to connect to Oracle database.
    For example, basic method of SQL Developer is JDBC Thin connection, in which case, SQL Developer will use JDBC driver that come with it, don't need any other thing installed.
    SQL Developer also can use TNS method which will require Oracle client installed and TNS names configured.

  • How can I connect to more than one computer from external ip

    Hi
    I have been using remote desktop for some time and have a port forward set so I can connect to our mail server from anywhere else externally from my macbook pro, but how can I connect to other macs in the office when there only seems to be the two ports available for use 5900 and 3283. I can only port forward to one computer? How can I connect to multiple computers when not within the same network? are there other ports available?
    Cheers
    Tony

    If your workstations get their addresses from an NAT device rather than being "real", the ports also need to be forwarded in the router to the workstation's internal IP address.  ARD uses port 3283 for the reporting and updating function, so if your Macs are getting their IP addresses through NAT, since you can only forward a port to a single workstation, you can only get reports, push package/files to etc. for a single workstation.
    ARD uses the VNC protocol for observation and control, though, and there are a range of IP addresses for that protocol, starting with 5900. ARD uses 5900 by default, so that port would be forwarded to the first workstation. You would, I believe,  need to install third-party VNC software on the systems (since the ARD client cannot listen on any port other than 5900 while other VNC systems can be set for other ports such as 5901, 5902, etc. You would then  forward 5901 to the second workstation (and on to 5902, 5903, etc.). You can then use the following information:
    http://docs.info.apple.com/article.html?path=RemoteDesktop/3.0/en/ARDC715.html  to connect.
    The only other options are: 1) to run the ARD administrator on a workstation on the network, and then take control of that system from outside, either via VNC or another copy of ARD, or 2) set up a virtual private network (VPN) so that when you connect from outside, your admin system is officially part of the local network.
    Hope this helps.

  • Does ARD support many client using one server separately simultaneity?

    Does ARD support more than one client using one server separately simultaneity, like Remote Desktop on Windows?
    Thank you!
    Message was edited by: tohy

    Thanks for your reply. Does Mac OS X (or server) supports the function that different accounts remote login in simultaneously and use the applications separately at the same time?

  • DNS: Client can't connect because .local domain isn't in DNS. How can I connect over the WAN to server.domain.local?

    So my 2012 server is set up on the LAN with a .local domain name. 
    Remote Desktop Services are set up and remoteapp stuff works fine on the LAN.
    I've set up port forwarding so I can connect to the server over the WAN too, but remoteapp stuff is a bit different. I can connect to the server by specifying the correct IP address. Giving a Web browser the address
    https://serverIPAddress/RDWeb
    lets me get the login screen and see the range of apps for me to run. I select one, the connectoid is downloaded correctly (in Chrome) and I click on the downloaded connectoid. 
    Unfortunately, rather than pursuing the sensible IP-address approach that I started with, the connectoid has been given the server's name on the LAN:  server.domain.local. Clearly, the client machine tries to look this up but DNS hasn't heard of
    it because it's a .local address. 
    I cannot be the only one to have come across this apparent oversight on Microsoft's part. Any ideas as to how this can sensibly be overcome? Obviously, I could put the IP address translation into every client's hosts file (and I've done this and shown it
    works) but I've got too many clients to mess about like this. Anybody know 'the Microsoft way' to fix this?
    Thank you for checking this out -- I am confident the details of the problem are completely specified in this query but, if I'm wrong, please ask.
    Many thanks again,
    Biffo

    Hi,
    I would like to suggest you to follow the checklist.
    Checklist: Make RemoteApp Programs Available from the Internet
    http://technet.microsoft.com/en-us/library/cc772415.aspx
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • How can I connect multiple clients to a single client ?

    I am currently developing an instant messaging program.I created a server and connected multiple clients to it by using thread logic.However I do not know how to connect multiple client to a single client.
    What shall I do for that?Does anybody know a good tutorial or sample program?Or shall anybody explain me what I shall do for building the Instant Messaging part of my chat program?
    Thank u in advance.

    You may use UDP multicast socket. But since you are using the UDP protocol you might risk losing the data that you send since UDP does not guarantee the safe transfer of data.
    Alternately, you might create a server that allows multiple client to connect to it whose connection Socket objects are then stored in a Vector <Socket> object. The server then sends back data to the connected client about the other clients connected to it. Now when the client wants to send data (like an IM) to another connected client, it has to send a request to the server specifying the client login name and the server in turn streams that particular client's Address and Port to the requesting client. The requesting client then initiates the connection with the other client and then starts a conversation. One more thing, when the client communicates it needs to send information to the server like the name by which it likes to be referenced. In this scenario the server acts like a central repository for clients to query the existence of other clients in the chat room. Each client here runs a thread that listens to incoming connections and when a connection is established, may be opens a IM window or something.
    The third option is to make the server to relay the information from one client to another. Like say, I'm connected to whoopy server and i want to send "Hello" to jackson, then i send the message (ie, Hello) along with the name of the client to which i wish to send it to (ie, jackson). The server then performs a lookup in its Vector <Socket> object and then initiates a connection with jackson and sends the information. However, this method is pretty costly in that you will be wasting a lot of processing behind the server.
    --Subhankar
    P.s. If you stumble upon any other brilliant ideas let me know.

  • How can i connect windows(laptop) to lion server?

    Hi..
    We in our company use mac's as clients. We use Mac OSx 10.7 lion server. We have a lenovo laptop for general purpose. Now can we connect that laptop in network. So that can we remotely use mac screen sharing.

    Are you asking how to connect to FileSharing from the PC ?
    Or are you asking about screensharing?
    On Server
    If file sharing, edit the SharePoint and make sure that
         Windows File Sharing (SMB) is enabled
    On the PC:
    Map a network drive
    \\10.0.0.1\Share
         (your IP and the share name)
    Make sure you check the box to use another account or user/password
    It will then ask you to enter a password.
    In general, the above should work.
    There are some cases where it requires a few other tricks.
    Good Luck

  • How Can I Copy an database from one server to another ?

    Hi All,
    I need to copy an existing database from one server to another server. I want to maintain all the settings from the source database.
    I´m not used to Oracle database and i´d be glad for any help.
    How can I do this ? Do I need to backup and restore in the other server ? Do I need to copy files from one server to another ?
    Any help will be really appreciated.
    Carlos.

    I think a simpler approach, other than using RMAN, is to do a database export from the source and then import them into the target database. But you will need to do some ground work on the target, i.e, create database, tablespaces, and schemas (with their name the same as those in the source database.)

  • How can I connect a client java desktop aplication with the server of jsf

    I need to connect a desktop aplication with a jsf, I need to know how I plug the desktop aplication. I open a connection and then what. I need to send faceBean or a HTML documment or a EL document class. Please help me. I don't know how to do this. If u have examples or code would be great.

    ok, the problem is how to send events to the jsf, how to maintain the session, and other kind of stuffs, this works with the browsers but not with my connection. The problem is not the conecction. The problem is keep the advantages of jsf with my connection. Im using a button in a jsp page connecting to jsf implementation mojarra and works for the events. but with my desktop connection and the same parameters crash with a exception java.util.zip.ZipException: incomplete dynamic bit lengths tree.
    this happens when I try to send the next parameter to jsf, javax.faces.ViewState=ANY VALUE.

  • How can i writ many times in one Excel

    I have a numbers in open excel,and than i want to compar those numbers to the new numbers, if it same the new number to be writ like the same as showing in excel (Abou55).but my probleme is when i am trying to writ the second number the first number desappear
    somone can help me withe sample.
    thank you
    Attachments:
    Abou55.zip ‏66 KB

    Your inner loop interates thru all of the elements of the left column and writes the second column with either the new string value if there is a match, or a "" if there is no match. This loop will step on the previous number every time.
    Your simplest solution is by enclosing the two nodes Range.Value2 in a case statement and execute it only if the compare is true.
    There is also a flaw in the inner loop auto indexing. There will always be only one value in that array. This inner loop serves no purpose and should be removed.
    Michael Munroe
    Certified LabVIEW Developer
    www.abcdef.biz
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • How can i connect oracle8 client to server in linux?

    Who can give me a sample?
    I mean how to config some .ora file....
    null

    http://lmgtfy.com/?q=apple+id+disabled

  • How can I connect to Oracle and SQL server at the same time?

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]
    As far as I know you have 3 options depending on your specifications. I don't think option #3 will work if you need to actually join a
    SQL Server table to an Oracle table.
    1. Oracle Transparent Gateway. I haven't used the Oracle Transparent Gateway but my understanding is that Oracle gateways are
    separate purchased products from Oracle. I've never seen any free/development versions of it anywhere. You'll need to contact
    your Oracle sales rep about it.
    2. Heterogeneous Connectivity. There's something called Heterogeneous Connectivity that could work for you - depends on what
    version of Oracle you're on and what OS. You basically set up an ODBC data source on the Oracle server and modify the listener.ora
    and tnsnames.ora files. You can then create a database link to SQL Server just like you would to any other Oracle database. You can
    check your Oracle documentation for how this works. There's also some very good documents on Metalink that tell you how to do this
    as well as a Heterogeneous Connectivity forum on this site.
    3. Use the exec_sql package available in Developer 2000. This allows you to open and execute cursors to remote databases within
    Developer. We have an account validation process that uses this - when a person enters an account number in a form while logged
    into Oracle it validates the account is valid in our main accounting DB2 database. We also pull HR information from DB2 into Oracle
    this way. If you're using Forms 6i exec_sql is a built-in command, in Forms 5.0 and 5.5 you have to add it as an attached library to
    the form. I think you also need the OCA options installed from the Developer software to have access to the library in Forms 5.0 and
    5.5. The library will be in the $ORACLE_HOME\oca20\plsqllib directory for these versions. The Developer documentation should have
    additional information.
    HTH

Maybe you are looking for

  • Certificate support in Java Swing application

    Hi There, I am new to this Certificate thing and running into issues! Would appreciate for all the help and please ignore for any stupid questions. Here is my scenario. 1. I do have a client server application and client is a java swing application w

  • Treo 750 syncing w/ Windows Vista 32bit

    I have a Treo 750 that I had synced with windows xp. Ever since I "upgraded" to windows vista I have not been able to sync.  The computer won't even recognize the phone as connected.  Here is what I have and what I have tried already.  I have, as men

  • Mapping IDOC error

    Hi experts, I'm doing my first scenario IDOC to JDBC, i've problem with mapping I don't have seen any example in this forum of mapping IDOC, only i have seen the document : https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-

  • Building NLE system - HD setup clarifications

    Hey guys, I'm about to build a new system in order to get rid of my Q9550. I've been reading Harm's website a lot, in order to find a good compromise between performances and price. I mostly edit with heavy DSLR or AVCHD codecs on Premiere CS6 soon t

  • ICloud Cannot Sign in the maximum number of free accounts has been activated on this iphone

    Hello, I got a iPhone 4 that has reached creating the limit of 3 accounts, im not trying to make a new account, but i just want to login to icloud and use the fin d my iphone feature, but when i try to login it gives the the cannot sign in error. im