@@ -18,22 +18,31 @@ Listens for incoming connections and streams them puffin profiler data.
1818 - num_clients: shared 'nb clients'
1919 - fn new() :
2020 - create channel for get frame info
21- - create PuffinServerImpl object to use in ** puffin-server** thread
22- - create thread ** puffin-server** for lisen for client and send frame to client
21+ - create thread ** puffin-server** with ` run ` as start function
22+ puffin management work is executed in this thread.
23+ - fn run() :
24+ - Create en LocalExecutor to handle puffin-server async task.
25+ - create PuffinServerConnect object to use in ** ps-connect** task
26+ - create PuffinServerSend object to use in ** ps-send** task
2327
2428- struct Client
2529 - client_addr
2630 - packet_tx: channel sender
2731 - join_handle: ** puffin-server-client** thread handle
2832
29- - struct PuffinServerImpl
33+ - struct PuffinServerConnect
34+ - executor:
3035 - tcp_listener: tcp listener of clients
31- - clients: list of ** Client** object
36+ - clients: shared list of ** Client** object
3237 - num_clients: shared 'nb clients'
3338 - fn accept_new_clients :
3439 - loop on * tcp_listener*
3540 - create thread * puffin-server-client* when client tried to connect
3641 - and create ** Client** object to allow PuffinSever to interract with client.
42+
43+ - struct PuffinServerSend
44+ - clients: shared list of ** Client** object
45+ - num_clients: shared 'nb clients'
3746 - fn send :
3847 - send frame data by channel to clients thread
3948
0 commit comments