import socket


def setup_socket() -> socket.socket:
    """
    sets up a socket used by the client.

    blocking must be false since used in async context.
    :return: the clients socket used to connect to the processing server.
    """
    sock = socket.socket()
    sock.setblocking(False)
    return sock