Results of 1 - 10 of about 35 for conn (0.008 sec.)
- timer file descriptor HOWTO — Python 3.14.8 ドキュメント 13159
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th
...is example, use loopback address to send "stop" command to the server. # # $ telnet 127.0.0.1 1234 # Trying 127.0.0.1... # Connected to 127.0.0.1. # Escape character is '^]'. # stop # Connection closed by foreign host. # sock = socket . socket ( sock...= 10 ** 9 i = i * one_sec_in_nsec os . timerfd_settime_ns ( fd , initial = i // 4 , interval = i // 4 ) timeout = 3 try : conn = None is_active = True while is_active : # Wait for the timer to expire for 3 seconds. # epoll.poll() returns a list of (...fd, event) pairs. # fd is a file descriptor. # sock and conn[=returned value of socket.accept()] are socket objects, not file descriptors. # So use sock.fileno() and conn.fileno() to... - https://man.mtool.work/python/3.14/howto/timerfd.html
- timer file descriptor HOWTO — Python 3.14.8 ドキュメント 13159
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th
...is example, use loopback address to send "stop" command to the server. # # $ telnet 127.0.0.1 1234 # Trying 127.0.0.1... # Connected to 127.0.0.1. # Escape character is '^]'. # stop # Connection closed by foreign host. # sock = socket . socket ( sock...= 10 ** 9 i = i * one_sec_in_nsec os . timerfd_settime_ns ( fd , initial = i // 4 , interval = i // 4 ) timeout = 3 try : conn = None is_active = True while is_active : # Wait for the timer to expire for 3 seconds. # epoll.poll() returns a list of (...fd, event) pairs. # fd is a file descriptor. # sock and conn[=returned value of socket.accept()] are socket objects, not file descriptors. # So use sock.fileno() and conn.fileno() to... - https://man.mtool.work/python/3.14/howto/timerfd.html
- http.client --- HTTP プロトコルクライアント — Python 3.14.8 ドキュメント 10772
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.client --- HTTP プロトコルクライアント テーマ 自動 ライト ダーク | http.client --- HTTP プ
...くは、 WebAssembly プラットフォーム を見てください。 このモジュールでは以下のクラスを提供しています: class http.client. HTTPConnection ( host , port=None , [ timeout , ] source_address=None , blocksize=8192 ) ¶ An HTTPConnection instance represents on...host:port , else the default HTTP port (80) is used. If the optional timeout parameter is given, blocking operations (like connection attempts) will timeout after that many seconds (if it is not given, the global default timeout setting is used). The...optional source_address parameter may be a tuple of a (host, port) to use as the source address the HTTP connection is made from. The optional blocksize parameter sets the buffer size in bytes for sending a file-like message body. 例... - https://man.mtool.work/python/3.14/library/http.client.html
- http.client --- HTTP プロトコルクライアント — Python 3.14.8 ドキュメント 10772
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.client --- HTTP プロトコルクライアント テーマ 自動 ライト ダーク | http.client --- HTTP プ
...くは、 WebAssembly プラットフォーム を見てください。 このモジュールでは以下のクラスを提供しています: class http.client. HTTPConnection ( host , port=None , [ timeout , ] source_address=None , blocksize=8192 ) ¶ An HTTPConnection instance represents on...host:port , else the default HTTP port (80) is used. If the optional timeout parameter is given, blocking operations (like connection attempts) will timeout after that many seconds (if it is not given, the global default timeout setting is used). The...optional source_address parameter may be a tuple of a (host, port) to use as the source address the HTTP connection is made from. The optional blocksize parameter sets the buffer size in bytes for sending a file-like message body. 例... - https://man.mtool.work/python/3.14/library/http.client.html
- selectors --- 高水準の I/O 多重化 — Python 3.14.8 ドキュメント 9420
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » selectors --- 高水準の I/O 多重化 テーマ 自動 ライト ダーク | selectors --- 高水準の I/O 多重化
...単なエコーサーバの実装です: import selectors import socket sel = selectors . DefaultSelector () def accept ( sock , mask ): conn , addr = sock . accept () # Should be ready print ( 'accepted' , conn , 'from' , addr ) conn . setblocking ( False ) sel ....register ( conn , selectors . EVENT_READ , read ) def read ( conn , mask ): data = conn . recv ( 1000 ) # Should be ready if data : print...( 'echoing' , repr ( data ), 'to' , conn ) conn . send ( data ) # Hope it won't block else : print ( 'closing' , conn ) sel . unregister ( conn ) conn . close () s... - https://man.mtool.work/python/3.14/library/selectors.html
- selectors --- 高水準の I/O 多重化 — Python 3.14.8 ドキュメント 9372
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » selectors --- 高水準の I/O 多重化 テーマ 自動 ライト ダーク | selectors --- 高水準の I/O 多重化
...単なエコーサーバの実装です: import selectors import socket sel = selectors . DefaultSelector () def accept ( sock , mask ): conn , addr = sock . accept () # Should be ready print ( 'accepted' , conn , 'from' , addr ) conn . setblocking ( False ) sel ....register ( conn , selectors . EVENT_READ , read ) def read ( conn , mask ): data = conn . recv ( 1000 ) # Should be ready if data : print...( 'echoing' , repr ( data ), 'to' , conn ) conn . send ( data ) # Hope it won't block else : print ( 'closing' , conn ) sel . unregister ( conn ) conn . close () s... - https://man.mtool.work/python/3.14/library/selectors.html
- multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7892
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶
...e forkserver start method, a server process is spawned. From then on, whenever a new process is needed, the parent process connects to the server and requests that it fork a new process. The fork server process is single threaded unless system librar...アを返します。デフォルトでは双方向性パイプを返します。以下に例を示します: from multiprocessing import Process , Pipe def f ( conn ): conn . send ([ 42 , None , 'hello' ]) conn . close () if __name__ == '__main__' : parent_conn , child_conn = Pipe () p...= Process ( target = f , args = ( child_conn ,)) p . start () print ( parent_conn . recv ()) # prints "[42, None, 'hello']" p . join () パイプのそれぞれの端を表す2つの... - https://man.mtool.work/python/3.14/library/multiprocessing.html
- multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7892
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶
...e forkserver start method, a server process is spawned. From then on, whenever a new process is needed, the parent process connects to the server and requests that it fork a new process. The fork server process is single threaded unless system librar...アを返します。デフォルトでは双方向性パイプを返します。以下に例を示します: from multiprocessing import Process , Pipe def f ( conn ): conn . send ([ 42 , None , 'hello' ]) conn . close () if __name__ == '__main__' : parent_conn , child_conn = Pipe () p...= Process ( target = f , args = ( child_conn ,)) p . start () print ( parent_conn . recv ()) # prints "[42, None, 'hello']" p . join () パイプのそれぞれの端を表す2つの... - https://man.mtool.work/python/3.14/library/multiprocessing.html
- socket --- 低水準ネットワークインターフェース — Python 3.14.8 ドキュメント 7701
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » socket --- 低水準ネットワークインターフェース テーマ 自動 ライト ダーク | socket --- 低水準ネット
...VMID constants defined on socket are: HV_GUID_ZERO HV_GUID_BROADCAST HV_GUID_WILDCARD - Used to bind on itself and accept connections from all partitions. HV_GUID_CHILDREN - Used to bind on itself and accept connection from child partitions. HV_GUID..._LOOPBACK - Used as a target to itself. HV_GUID_PARENT - When used as a bind accepts connection from the parent partition. When used as an address target it will connect to the parent partition. The service_id is...cure File Descriptor Handling を参照してください。 Availability : Linux >= 2.6.27. Added in version 3.2. SO_* socket. SOMAXCONN ¶ MSG_* SOL_* SCM_* IPPROTO_* IPPORT_* INADDR_* IP_* IPV6_* EAI_* AI_* NI_* TCP_* Many constants of these forms, documente... - https://man.mtool.work/python/3.14/library/socket.html
- socket --- 低水準ネットワークインターフェース — Python 3.14.8 ドキュメント 7701
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » socket --- 低水準ネットワークインターフェース テーマ 自動 ライト ダーク | socket --- 低水準ネット
...VMID constants defined on socket are: HV_GUID_ZERO HV_GUID_BROADCAST HV_GUID_WILDCARD - Used to bind on itself and accept connections from all partitions. HV_GUID_CHILDREN - Used to bind on itself and accept connection from child partitions. HV_GUID..._LOOPBACK - Used as a target to itself. HV_GUID_PARENT - When used as a bind accepts connection from the parent partition. When used as an address target it will connect to the parent partition. The service_id is...cure File Descriptor Handling を参照してください。 Availability : Linux >= 2.6.27. Added in version 3.2. SO_* socket. SOMAXCONN ¶ MSG_* SOL_* SCM_* IPPROTO_* IPPORT_* INADDR_* IP_* IPV6_* EAI_* AI_* NI_* TCP_* Many constants of these forms, documente... - https://man.mtool.work/python/3.14/library/socket.html