Hello folks, This is about a small college project, a network card game. There is a server and 4 clients. I have a special class who does handle all the network messaging stuff called respectively NetClientInterface for the server side and NetServerInterface for the client side. Both these classes use ObjectOutput and ObjectInput streams to write objects. The object sended are from class "Message". In the class message I have an int for the type of message identification and a vector of arguments which contains quite often elements of the class "Card". My problem is the following : Sometimes the server seems to send the things but it is empty on the client side. That's it my vector of arguments is empty. Here some code : When I send messages I use the following :
To receive message :
note that messagesOut is like a queue. because the main app use another method called send which only adds the mess to the queue until postMessages really send it. It is the same for messagesIn, the main app call receive to see if there is a new message. I 'm afraid that it is not really clear. Anyway the real problem is about writing objects that seems okay on a side and empty in the other. Thanks for your time [ May 20, 2002: Message edited by: Brett Anthoine ]
Brett Anthoine<br />"640k should be enough for anybody."