hamishehiran's Profile
Reputation: 4
Apprentice
- Group:
- Active Members
- Active Posts:
- 73 (0.06 per day)
- Joined:
- 03-February 10
- Profile Views:
- 3,411
- Last Active:
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
-
saSBH2 
13 Jul 2012 - 11:41 -
brep 
03 Dec 2011 - 10:38 -
ahamedirshad123 
04 Jul 2011 - 02:28
Posts I've Made
-
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. -
In Topic: Client/Server Threads: messages don't pass properly.
Posted 12 Apr 2012
pbl, 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:
-
hamishehiran@yahoo.com
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Anarion
11 Aug 2010 - 00:46saSBH2
20 Jun 2010 - 11:15