|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'socket' module. |
|
8 """ |
|
9 |
|
10 class socket(): |
|
11 def __init__(self, family, type, proto): |
|
12 pass |
|
13 |
|
14 def bind(self, address): |
|
15 pass |
|
16 |
|
17 def listen(self, backlog): |
|
18 pass |
|
19 |
|
20 def accept(self): |
|
21 pass |
|
22 |
|
23 def connect(self, address): |
|
24 pass |
|
25 |
|
26 def send(self, bytes): |
|
27 pass |
|
28 |
|
29 def recv_into(self, buffer, bufsize=None): |
|
30 pass |
|
31 |
|
32 def recv(self, bufsize): |
|
33 pass |
|
34 |
|
35 def sendto(self, bytes, address): |
|
36 pass |
|
37 |
|
38 def recvfrom(self, bufsize): |
|
39 pass |
|
40 |
|
41 def setsockopt(self, level, optname, value): |
|
42 pass |
|
43 |
|
44 def settimeout(self, value): |
|
45 pass |
|
46 |
|
47 def setblocking(self, flag): |
|
48 pass |
|
49 |
|
50 def getaddrinfo(host, port): |
|
51 pass |
|
52 |