This commit is contained in:
Davte 2020-03-25 22:34:05 +01:00
parent 5b17f024b7
commit a932184757
3 changed files with 25 additions and 0 deletions

0
src/__init__.py Normal file
View File

0
src/client.py Normal file
View File

25
src/server.py Normal file
View 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...")