test
This commit is contained in:
parent
5b17f024b7
commit
a932184757
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
0
src/client.py
Normal file
0
src/client.py
Normal file
25
src/server.py
Normal file
25
src/server.py
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import asyncio
|
||||||
|
import asyncore
|
||||||
|
import logging
|
||||||
|
|
||||||
|
|
||||||
|
async def read_input_socket():
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
async def write_on_output_socket():
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
|
try:
|
||||||
|
logging.info("Starting file bridging server...")
|
||||||
|
loop.run_until_complete(
|
||||||
|
asyncio.gather(
|
||||||
|
read_input_socket,
|
||||||
|
write_on_output_socket
|
||||||
|
)
|
||||||
|
)
|
||||||
|
except KeyboardInterrupt():
|
||||||
|
logging.info("Received KeyboardInterrupt, stopping...")
|
Loading…
x
Reference in New Issue
Block a user