Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~282 People Reached
Favorite Forums
Favorite Tags
Member Avatar for kar0lis

Hi how to kill the[B] recv [/B]or [B]recvfrom [/B]in socket connection, then there is no data and the functions recv, recvfrom is in waiting mode.?for example: [CODE] sock=socket.socket(...) sock.bind((host,port)) while True: packet,address=socket.recvfrom() print packet [/CODE] if there is no data on socket it is waiting, so how to kill it …

Member Avatar for Gribouillis
0
138
Member Avatar for kar0lis

Hi, I need that my server will be in waiting mode while first packet arrived, when it happens it shoud start to receive packets until the socket.settimeout(1) function kill waiting. my code seems like that, and is working properly until settimeout() return : Traceback (most recent call last): File "C:\Documents …

Member Avatar for kar0lis
0
144