CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
test_client.TcpEcho Class Reference

Public Member Functions

 __init__ (self)
 run (self)
 serve (self, c)
 drop_all (self)
 close (self)

Public Attributes

 srv = socket.socket()
 port = self.srv.getsockname()[1]
list clients
list accepted = [], 0

Detailed Description

Definition at line 44 of file test_client.py.

Constructor & Destructor Documentation

◆ __init__()

test_client.TcpEcho.__init__ ( self)

Definition at line 45 of file test_client.py.

Member Function Documentation

◆ close()

test_client.TcpEcho.close ( self)

Definition at line 89 of file test_client.py.

References close(), drop_all(), and srv.

Referenced by close().

◆ drop_all()

test_client.TcpEcho.drop_all ( self)

Definition at line 80 of file test_client.py.

References cmlabs::RequestGateway.clients, and clients.

Referenced by close().

◆ run()

test_client.TcpEcho.run ( self)

Definition at line 53 of file test_client.py.

References accepted, cmlabs::RequestGateway.clients, clients, serve(), and srv.

◆ serve()

test_client.TcpEcho.serve ( self,
c )

Definition at line 63 of file test_client.py.

Referenced by run(), and test_keepalive.KaTcp.run().

Member Data Documentation

◆ accepted

list test_client.TcpEcho.accepted = [], 0

Definition at line 50 of file test_client.py.

Referenced by run(), and test_keepalive.KaTcp.run().

◆ clients

◆ port

test_client.TcpEcho.port = self.srv.getsockname()[1]

Definition at line 49 of file test_client.py.

◆ srv

test_client.TcpEcho.srv = socket.socket()

Definition at line 46 of file test_client.py.

Referenced by close(), test_keepalive.KaTcp.close(), run(), and test_keepalive.KaTcp.run().


The documentation for this class was generated from the following file: