tcf-serial-tee tcp_server
Simics Reference Manual  /  5 Classes  / 

tcp-server

Description

External connection server for TCP/IP sockets

Interfaces Implemented

conf_object, log_object, external_connection_ctl, tcp_connection_info

Notifiers

cell-change
Notifier that is triggered after the object's cell was changed.
object-delete
Notifier that is triggered just before Simics object is deleted.
queue-change
Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.

Commands for this class

Attributes

client
Required attribute; read/write access; type: o
Client object, which must implement the external_connection_events interface.
new_port_if_busy
Optional attribute; read/write access; type: b
Determines if a new TCP port may be used when the given port is already busy. The default value is TRUE. It may be set to FALSE for setups that rely on the same port being used all the time.
port
Optional attribute; read/write access; type: i|n
Return the TCP listening port used by the server, or NIL if no port is open. The port must not be privileged, i.e. the allowed range is [1024, 65535]. Specifying a value of 0 means that a random free port will be used and specifying NIL results in the server closing down.

Provided By

external-connection
tcf-serial-tee tcp_server