Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sed ultricies nibh. Suspendisse eget sagittis turpis. Nulla turpis ante, aliquam quis elementum quis, hendrerit sed enim. Nunc placerat, sem nec vestibulum pharetra, tortor tellus imperdiet urna, id ullamcorper nibh orci nec metus. Aenean dolor nibh, porttitor eu tristique eget, accumsan eu leo. Phasellus non odio tempor, porta mauris in, consectetur tortor. Pellentesque vel tortor porta, posuere justo vitae, volutpat velit. Phasellus justo mauris, tincidunt vitae leo eget, feugiat ullamcorper odio. Nulla facilisi. Curabitur commodo ac tortor vel auctor.
Available methods:
- socket.__ctor() - instantiates a new socket
- socket.setOption() - Sets a given option for the socket
- socket.getOption() - Returns a given option from the socket
- socket.bind() - Binds a socket to a host/port
- socket.listen() - Listens for incoming connections
- socket.accept() - Accepts an incoming socket connection
- socket.close() - Closes a socket connection
- socket.read() - Read data from a socket connection
- socket.write() - Writes data to a socket connection
- socket.getHost() - Returns the host to which the socket is connected to
- socket.getPort() - Returns the port to which the socket is connected (if any)
Available constants:
- socket.AF_UNIX - AF_UNIX
- socket.AF_INET - AF_INET
- socket.AF_INET6 - AF_INET6
- socket.SOCK_STREAM - SOCK_STREAM
- socket.SOCK_DGRAM - SOCK_DGRAM
- socket.SOCK_RAW - SOCK_RAW