Message9509
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM )
sz = s.recv(4, 256)
You get:
Traceback (most recent call last):
File "/tmp/sock_test.jy", line 6, in <module>
sz = s.recv(4, 256)
TypeError: recv() takes exactly 2 arguments (3 given)
I also tried
sz = s.recv(4, flags=256)
which changed the exception to:
TypeError: recv() got an unexpected keyword argument 'flags'
Also, the flags parameter I am trying to use is socket.MSG_WAITALL
but, socket does not define that attribute. |
|
Date |
User |
Action |
Args |
2015-02-10 16:57:55 | gary.aviv | set | messageid: <1423587475.13.0.102973176435.issue2267@psf.upfronthosting.co.za> |
2015-02-10 16:57:55 | gary.aviv | set | recipients:
+ gary.aviv |
2015-02-10 16:57:55 | gary.aviv | link | issue2267 messages |
2015-02-10 16:57:54 | gary.aviv | create | |
|