#!/usr/bin/env python3

import asyncio
from simple_kerberos_login import SimpleKerberosLogin
from simple_kerberos_response_handler import ResponseHandler

username = "h_world"
password = "123456789"


async def main():
    loop = asyncio.get_running_loop()
    response_handler = ResponseHandler(username)
    on_conn_lost = loop.create_future()
    login_factory = lambda: SimpleKerberosLogin(
        username, password, response_handler.on_login, on_conn_lost
    )
    transport, _ = await loop.create_connection(login_factory, "127.0.0.1", 8888)

    try:
        await on_conn_lost
    except:
        transport.close()


if __name__ == "__main__":
    asyncio.run(main())

c9a44c48df8cdd9d3215a6b387a8c15603d488fa
<mask token>

<mask token>


async def main():
    loop = asyncio.get_running_loop()
    response_handler = ResponseHandler(username)
    on_conn_lost = loop.create_future()
    login_factory = lambda : SimpleKerberosLogin(username, password,
        response_handler.on_login, on_conn_lost)
    transport, _ = await loop.create_connection(login_factory, '127.0.0.1',
        8888)
    try:
        await on_conn_lost
    except:
        transport.close()


if __name__ == '__main__':
    asyncio.run(main())

<mask token>
username = 'h_world'
password = '123456789'


async def main():
    loop = asyncio.get_running_loop()
    response_handler = ResponseHandler(username)
    on_conn_lost = loop.create_future()
    login_factory = lambda : SimpleKerberosLogin(username, password,
        response_handler.on_login, on_conn_lost)
    transport, _ = await loop.create_connection(login_factory, '127.0.0.1',
        8888)
    try:
        await on_conn_lost
    except:
        transport.close()


if __name__ == '__main__':
    asyncio.run(main())

import asyncio
from simple_kerberos_login import SimpleKerberosLogin
from simple_kerberos_response_handler import ResponseHandler
username = 'h_world'
password = '123456789'


async def main():
    loop = asyncio.get_running_loop()
    response_handler = ResponseHandler(username)
    on_conn_lost = loop.create_future()
    login_factory = lambda : SimpleKerberosLogin(username, password,
        response_handler.on_login, on_conn_lost)
    transport, _ = await loop.create_connection(login_factory, '127.0.0.1',
        8888)
    try:
        await on_conn_lost
    except:
        transport.close()


if __name__ == '__main__':
    asyncio.run(main())

#!/usr/bin/env python3

import asyncio
from simple_kerberos_login import SimpleKerberosLogin
from simple_kerberos_response_handler import ResponseHandler

username = "h_world"
password = "123456789"


async def main():
    loop = asyncio.get_running_loop()
    response_handler = ResponseHandler(username)
    on_conn_lost = loop.create_future()
    login_factory = lambda: SimpleKerberosLogin(
        username, password, response_handler.on_login, on_conn_lost
    )
    transport, _ = await loop.create_connection(login_factory, "127.0.0.1", 8888)

    try:
        await on_conn_lost
    except:
        transport.close()


if __name__ == "__main__":
    asyncio.run(main())
