Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 22 Jan 2013
Offline Last Active Jan 24 2013 06:45 AM

Topics I've Started

Socket Object Serialization

24 January 2013 - 02:47 AM

Hi there,

I would like to serialize a socket object(actually it's a dictionary that contain a socket object).
I have read about Pickle but, a socket object could not be picklable.
Any suggesstions?

Sending messages

22 January 2013 - 09:45 AM

Hi there,

I have wrriten a instant messaging server like MSN or ICQ and I've gotten a problem.
In theory, when client asked for sending message to a friend through that server where should I get the friend's socket?
How can I validate that socket?How can I know for sure is the specified friend socket?
What happend when the friend logged out? I should support that but I can not send messages through a broken socket(I will probably get a socket timeout error).

I think I know how to handle with online friends but on the other side, offline friends are problematic.