摘要:
1.PyMethodDef结构体源码(Include/methodobject.h):typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);struct PyMethodDef { const char *ml_name; /* The name of the built-in function/method */ PyCFunction ml_meth; /* The C function that implements it */ int ml_flags; /* Combinat... 阅读全文
摘要:
详细内容见:http://docs.python.org/3/library/socket.html1.属性AF_UNIX,AF_INET,AF_INET6SOCK_STREAM,SOCK_DGRAM2.异常errorherrorgaierrortimeout3.函数socket()socketpair()fromfd()4.数据属性ssl()getaddrinfo()getnameinfo()getfqdn()gethostname()gethostbyname()gethostbyname_ex()gethostbyaddr()getprotobyname()getservbyname() 阅读全文