hamishehiran's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Active Members
Active Posts:
73 (0.06 per day)
Joined:
03-February 10
Profile Views:
3,411
Last Active:
User is offline Apr 13 2012 11:06 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   hamishehiran has not set their status

Posts I've Made

  1. In Topic: Can't Read Multiple Serialized Objects.

    Posted 12 Apr 2012

    I once used Vectors to save and read multiple objects. I think that is easier and java controls the serialization for the Vector.
    Even if object types are different , you can set vector's type to Object.
  2. In Topic: Client/Server Threads: messages don't pass properly.

    Posted 12 Apr 2012

    View Postpbl, on 12 April 2012 - 08:24 PM, said:

    Completly wrong design :) Sorry

    The Server should not a Thread.
    The Server waits for a Client connection and then spawn a Thread to serve that connection, and then go back to wait for a connection

    Very very basic example:
    http://www.dreaminco...snippet1917.htm

    or a complete chat room
    http://www.dreaminco...r-gui-optional/


    Thank you. At First Server was not a thread but really there was no different in the result. I have created threads for input and outputs. But Considering that Client and Server not be Threads ( changed it in the code) should I create a Thread just for accepting the sockets? I've seen a lot of codes ( also those you suggested) and I know that the Server and Client class doesn't need to be a thread, but I don't know how many threads are needed for my particular program.

My Information

Member Title:
D.I.C Head
Age:
21 years old
Birthday:
September 13, 1991
Gender:
Interests:
mathematics , piano , philosophy, programming , modern physics & cosmology...
Years Programming:
1
Programming Languages:
java,c++

Contact Information

E-mail:
Private
Yahoo:
Yahoo  hamishehiran@yahoo.com

Friends

Comments

Page 1 of 1
  1. Photo

    Anarion Icon

    11 Aug 2010 - 00:46
    np :) nice to meet you too!
  2. Photo

    saSBH2 Icon

    20 Jun 2010 - 11:15
    pekh
Page 1 of 1