Object <- AbstractTCPStream |
|
|
Abort CanConnect ClearAbort Connect Disconnect Init Listen ResolveHostname TCPInit |
|
Aborted Connected LocalIPAddress LocalPort RemoteIPAddress RemotePort |
| Field | Type | |
|---|---|---|
| Stream: | target: | Object |
| AbstractTCPStream: | connectState: | Unsigned |
| localPort: | Unsigned | |
| remoteIPAddress: | Unsigned | |
| remotePort: | Unsigned |
Define Class AbstractTCPStream; abstract; inherits from Object; inherits from Stream; inherits from Connectable; field connectState: Unsigned; field localPort: Unsigned, getter, setter; // local TCP port field remoteIPAddress: Unsigned, getter, setter; // remote IP address field remotePort: Unsigned, getter, setter; // remote TCP port attribute RemoteIPAddress: Unsigned; attribute RemotePort: Unsigned; attribute LocalIPAddress: Unsigned, readOnly; attribute LocalPort: Unsigned; operation Listen(); // methods for Connectable overrides CanConnect; // returns true if state is other than kConnected overrides Connect; // at this level just sets the state of the stream to kConnected overrides Connected; // return whether state is kConnected overrides Disconnect; // at this level just sets the state of the stream to kDisconnected overrides Abort; // at this level, sets the state of the stream to kAborted overrides Aborted; // returns whether state is kAborted. overrides ClearAbort; // at this level, sets the state of the stream back to kDisconnected. // miscellany overrides Init; // sets up fields from NewTCPStreamParamters class operation ResolveHostname(hostName: Text): Unsigned, noMethod; // returns the IP address for a 'hostName' of the form // "host.acme.net", invoking DNS if necessary // upcalls from IP class operation TCPInit(logLevel: Unsigned); // called when IP is initialized end class;