|
PCS
0.4
|
Public Member Functions | |
| def | __init__ |
| def | connect |
| def | read |
| def | read_packet |
| def | recv |
| def | recvfrom |
| def | write |
| def | send |
| def | sendto |
| def | close |
Public Attributes | |
| file | |
Base class for all IPv4 connectors. This class implements all the necessary functions for a plain IPv4 based connector. In particular the data access methods, such as read, write, etc. likely do not need to be overridden by the sub classes.
| def pcs.IP4Connector.__init__ | ( | self, | |
name = None |
|||
| ) |
initialize an IP4Connector
References pcs.PcapConnector.file, pcs.PcapDumpConnector.file, and pcs.IP4Connector.file.
| def pcs.IP4Connector.close | ( | self | ) |
close an IPv4 Connector
Reimplemented from pcs.Connector.
| def pcs.IP4Connector.connect | ( | self, | |
| address | |||
| ) |
connect to a foreign IPv4 address
| def pcs.IP4Connector.read | ( | self, | |
| len | |||
| ) |
read data from an IPv4 socket
| def pcs.IP4Connector.read_packet | ( | self | ) |
Read a packet from the underlying I/O layer, and return an instance of a class derived from pcs.Packet appropriate to the data-link or transport layer in use. If the Connector has multiple data-link layer support, then the type returned by this method may vary. If the underlying packet parsers throw an exception, it will propagate here.
Reimplemented from pcs.Connector.
Reimplemented in pcs.UmlMcast4Connector.
| def pcs.IP4Connector.recv | ( | self, | |
| len, | |||
flags = 0 |
|||
| ) |
recv data from an IPv4 socket
| def pcs.IP4Connector.recvfrom | ( | self, | |
| len, | |||
flags = 0 |
|||
| ) |
recvfrom data from an IPv4 socket
| def pcs.IP4Connector.send | ( | self, | |
| packet, | |||
flags = 0 |
|||
| ) |
send data to an IPv4 socket
| def pcs.IP4Connector.sendto | ( | self, | |
| packet, | |||
| addr, | |||
flags = 0 |
|||
| ) |
sendto data to an IPv4 socket
| def pcs.IP4Connector.write | ( | self, | |
| packet, | |||
flags = 0 |
|||
| ) |
write data to an IPv4 socket
Reimplemented in pcs.UmlMcast4Connector.
1.8.0