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 &g

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

2012-07-08 Thread Andrew D'Angelo
t 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 pla

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

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 apar

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

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( ('', 17100) ) On windows, connect() returns and I have a broadcast so