<commit_before># Module:   sockets
# Date:     04th August 2004
# Author:   <NAME> <<EMAIL>>

"""TCP/IP and UDP Sockets

This module contains classes for TCP/IP and UDP sockets for
both servers and clients. All classes are thin layers on-top
of the standard socket library. All implementations are
non-blocking. This module relies heavily on the event module
and as such the implementations in this module are all
event-driven and should be sub-classed to do something usefull.
"""

import os
import socket
from errno import *
from collections import defaultdict, deque

from circuits.lib.pollers import Select
from circuits.core import handler, Event, Component

TIMEOUT = 0.001
BUFSIZE = 4096
BACKLOG = 128

class Connect(Event):
    """Connect(host, port, ssl=False) -> Connect Event

    Connect event used for Client components to initiate a new connection.
    """

class Connected(Event):
    """Connected(Event) -> Connected Event
<commit_msg>circuits.net.sockets: Updated doc string of sockets module.<commit_after># Module:   sockets
# Date:     04th August 2004
# Author:   <NAME> <<EMAIL>>

"""Socket Components

This module contains various Socket Components for use with Networking.
"""

import os
import socket
from errno import *
from collections import defaultdict, deque

from circuits.lib.pollers import Select
from circuits.core import handler, Event, Component

TIMEOUT = 0.001
BUFSIZE = 4096
BACKLOG = 128

class Connect(Event):
    """Connect(host, port, ssl=False) -> Connect Event

    Connect event used for Client components to initiate a new connection.
    """

class Connected(Event):
    """Connected(Event) -> Connected Event

{'fraction_non_alphanumeric': 0.08021712907117008, 'fraction_numerical': 0.020506634499396863, 'mean_word_length': 4.300319488817891, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4114183', 'n_tokens_mistral': 492, 'n_tokens_neox': 447, 'n_words': 200}