By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

help using sockets, and OOP?

P: n/a
Hi.

I realise, that there's probably something intrinsic to OOP that I don't
understand here. Or maybe it's something to do with sockets. I'm not sure.

Basically, I'm trying to hack up an IRC bot, that joins two servers at
once. I use two object instancs of the same class, both of which make
connections using the socket module.

Problem is, I can't seem to get both objects to connect to their
constituent servers at the same time. I'm not sure whether it's that both
objects can't instantiate at once, or whether only one can use the socket
module at any one time.

Here's my code:

http://plz.donthack.us/~hairyman/mybot.py

Can anybody see what it is I'm missing?
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Dfenestr8 wrote:
Basically, I'm trying to hack up an IRC bot, that joins two servers at
once. I use two object instancs of the same class, both of which make
connections using the socket module.

Problem is, I can't seem to get both objects to connect to their
constituent servers at the same time. I'm not sure whether it's that both
objects can't instantiate at once, or whether only one can use the socket
module at any one time.


What's the symptom of the problem? I expect your answer
to include a traceback, but perhaps it's something else
like a segmentation fault or something you are observing
yourself... whatever it is, providing a description of
it would be better than just saying you "can't seem to get"
it working...

-Peter
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.