Author gary.aviv
Recipients gary.aviv
Date 2015-02-10.16:57:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:55gary.avivsetmessageid: <>
2015-02-10 16:57:55gary.avivsetrecipients: + gary.aviv
2015-02-10 16:57:55gary.avivlinkissue2267 messages
2015-02-10 16:57:54gary.avivcreate