Python Forum
Async socket server and ports
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Async socket server and ports
#2
With a trick the developers made asynchronous code looking like synchronous code.
They use generators with the send function, which allows to delegate everything.

It's a combination of:
  • DefaultSelector, which uses select, epoll and other os related selectors for sockets
  • Generators (await was before yield from, async was previously a normal generator with a yield statement used with send from outside)
  • EventLoop, which is asyncio.run_forever()

If you want to dig deeper in asyncio, you should watch some talks on YouTube.
Some of them are explaining it very deep.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Async socket server and ports - by Pengwyn - Feb-27-2019, 05:24 AM
RE: Async socket server and ports - by DeaD_EyE - Feb-28-2019, 12:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Paramiko Server -- Exception (server): Error reading SSH protocol banner ujlain 3 5,063 Jul-24-2023, 06:52 AM
Last Post: Gribouillis
  Socket server problem H84Gabor 0 1,320 Jun-21-2022, 12:14 AM
Last Post: H84Gabor
  [Socket] Can a server be accessible from devices not in the same network? SheeppOSU 2 3,046 Jun-18-2020, 01:29 PM
Last Post: DeaD_EyE
  Writing socket server NewPy_thwan_Programmer 0 1,990 Feb-23-2020, 03:58 PM
Last Post: NewPy_thwan_Programmer
  Websocket server not async? korenron 0 1,880 Sep-23-2019, 01:40 PM
Last Post: korenron
  Server and Network (socket) [WinError 10053] Timxxx 1 4,701 Aug-23-2019, 10:03 AM
Last Post: iMuny
  Server and Network (socket) [WinError 10053] SheeppOSU 2 22,499 Apr-13-2019, 09:23 PM
Last Post: SheeppOSU
  Multi connection socket server help! MuntyScruntfundle 0 2,758 Feb-19-2019, 12:03 PM
Last Post: MuntyScruntfundle
  Send data BMP180 between client and server trought module socket smalhao 0 2,913 Jul-30-2018, 12:56 PM
Last Post: smalhao
  Can't see my UPnP Opened Ports BaiYouLing4 0 2,827 Aug-04-2017, 01:33 AM
Last Post: BaiYouLing4

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020