Re: Socket code not executing properly in a thread (Windows)

2012-07-08 Thread Thomas Jollans
On 07/08/2012 11:03 AM, Andrew D'Angelo wrote: > Also, running the sned to socket code inside the main loop would not work, > as the main loop pauses until it recieves data from the socket (an IRC > message), which is why I didn't put the SMS code in the main loop in the > first place. http://

Re: Socket code not executing properly in a thread (Windows)

2012-07-08 Thread Andrew D'Angelo
"John Nagle" wrote in message news:jta1v7$v0b$1...@dont-email.me... >We have no idea what IRC module you're using. I am sending plain text to the socket, sorry for not mentioning it before. At the simplest level, it appears that when the code runs in Windows, data is not sent to a socket

Re: Socket code not executing properly in a thread (Windows)

2012-07-07 Thread John Nagle
On 7/8/2012 3:55 AM, Andrew D'Angelo wrote: Hi, I've been writing an IRC chatbot that an relay messages it receives as an SMS. We have no idea what IRC module you're using. As it stands, I can retrieve and parse SMSs from Google Voice perfectly The Google Voice code you have probably

Re: Socket code not executing properly in a thread (Windows)

2012-07-07 Thread Andrew D'Angelo
"Thomas Jollans" wrote in message news:mailman.1895.1341677582.4697.python-l...@python.org... > On 07/08/2012 12:55 PM, Andrew D'Angelo wrote: > > Please set your clock to the correct date and time. My BIOS battery has died and I haven't gotten a chance to replace it. Made a mistake when setti

Re: Socket code not executing properly in a thread (Windows)

2012-07-07 Thread Thomas Jollans
On 07/08/2012 12:55 PM, Andrew D'Angelo wrote: Please set your clock to the correct date and time. > (If it would help, the > full code can be seen here: http://lickitung.it.cx/exe/bot/bot.py): No, it can't. > def sendPrivateMessage(channel, message):#private message send function > > glob

Re: socket code

2005-07-08 Thread Grant Edwards
On 2005-07-08, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to create a broadcast socket in some portable code (windows XP & > mandrake linux). When I run the following lines through idle: > > import socket > s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM ) > s.con