Classical socket
- class squidasm.sim.stack.csocket.ClassicalSocket(netsquid_socket, app_name, remote_app_name, socket_id=0)
Classical socket, used for simulating classical data exchange between programs.
- send(msg)
Sends a string message to the remote node.
- Return type:
None
- recv(**kwargs)
Receive a string message to the remote node.
- Return type:
Generator[EventExpression,None,str]
- send_int(value)
Send an integer value to the remote node.
- Return type:
None
- recv_int()
Receive an integer value to the remote node.
- Return type:
Generator[EventExpression,None,int]
- send_float(value)
Send an float value to the remote node.
- Return type:
None
- recv_float()
Receive an float value to the remote node.
- Return type:
Generator[EventExpression,None,float]
- send_structured(msg)
Send a structured message to the remote node.
- Return type:
None
- recv_structured(**kwargs)
Receive a structured message to the remote node.
- Return type:
Generator[EventExpression,None,StructuredMessage]
- recv_silent(**kwargs)
Receive a message without logging
- Return type:
str
- send_silent(msg)
Sends a message without logging
- Return type:
None