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

2012-07-08 Thread Andrew D'Angelo
is not sent to a socket when inside a thread, while on OS X it is. 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

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

Socket code not executing properly in a thread (Windows)

2012-07-07 Thread Andrew D'Angelo
Hi, I've been writing an IRC chatbot that an relay messages it recieves as an SMS. As it stands, I can retrieve and parse SMSs from Google Voice perfectly, and print them to the console. The problem lies in actually posting the message to the IRC channel. Since the SMS checker runs in a thread

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 global

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

2012-07-07 Thread Andrew D'Angelo
Thomas Jollans t...@jollybox.de 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

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

socket code

2005-07-08 Thread ronpro
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.connect( ('broadcast', 17100) ) On windows, connect() returns and I have a

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.connect(