socket: Add _GLOBAL_DEFAULT_TIMEOUT constant.

pull/118/head
Paul Sokolovsky 2014-05-25 22:56:45 +03:00
rodzic 5c1b7e4885
commit a8f0713548
3 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
srctype = micropython-lib
type = module
version = 0.0.2
version = 0.0.3
author = Paul Sokolovsky

Wyświetl plik

@ -6,7 +6,7 @@ from setuptools import setup
setup(name='micropython-socket',
version='0.0.2',
version='0.0.3',
description='socket module for MicroPython',
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
url='https://github.com/micropython/micropython/issues/405',

Wyświetl plik

@ -1,6 +1,9 @@
from microsocket import getaddrinfo
import microsocket as _socket
_GLOBAL_DEFAULT_TIMEOUT = 30
def create_connection(addr, timeout=None, source_address=None):
s = socket()
#print("Address:", addr)