|
From: Kevin N. <bea...@ya...> - 2004-10-19 17:38:17
|
I need some help with the tjukebox socket programming. Here's a little bit of what's not good with the way things are now. Currently the socket class has an overloaded << and >> operator. The client creates a socket to the server and can send data. The server can send data back, but can only use the << operator once. It seems like after this the socket get closed. This means the client has to keep sending requests for data to keep the socket open. The message size to the client is limited too, so I can't send all the data at once. I try to get past the message size by doing this: Client : Send me album 1 Server : here it is! Client : Send me album 2 ... Sometimes there are some albums with too many tracks and the full list doesn't get sent because of the size limit. At this point the program exits. When the client and server are running on the same computer there is no limit to message size. I know you told me once that you have a decent socket class from one of your classes. Could you send them to me? I'll try them out and hopefully they'll work better. Kevin ===== Manage your PEZ collection online. Visit PezBase at http://pezbase.beakerboy.com _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com |