Results 1 to 2 of 2
  1. #1
    dario111cro is offline Member
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    0

    Default Reading object in multithreaded socket server

    I am quite new to sockets and thread in java, so I got stuck at one point in programming multithreaded socket server.

    How I can read objects in multithreaded socket server? I can read strings with BufferedReader class (as all examples suggest), but I see no methods for reading objects. Can I use the same classes as in normal socket server, but I need to put all code in class that implements Runnable? Thank you very much...

  2. #2
    dario111cro is offline Member
    Join Date
    Feb 2012
    Posts
    2
    Rep Power
    0

    Default Re: Reading object in multithreaded socket server

    Oh never mind. Writing previous post made me to think about different approach and I finally managed to read objects! :)

Similar Threads

  1. Replies: 4
    Last Post: 09-29-2011, 02:17 PM
  2. Problem reading from server socket
    By glauber in forum Advanced Java
    Replies: 5
    Last Post: 02-17-2011, 01:11 PM
  3. Multithreaded server crashes
    By skarosg3 in forum Threads and Synchronization
    Replies: 7
    Last Post: 05-26-2010, 10:24 AM
  4. Multithreaded Client/Server Chat program
    By f0ns in forum Threads and Synchronization
    Replies: 3
    Last Post: 10-21-2009, 06:26 PM
  5. A simple multithreaded server
    By Java Tip in forum java.net
    Replies: 0
    Last Post: 04-07-2008, 09:15 PM

Posting Permissions

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