[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

AbstractTCPStream

abstract
inherits from Object
inherits from Stream
inherits from Connectable

Object <- AbstractTCPStream



Operations

Get list of all operations

Abort
CanConnect
ClearAbort
Connect
Disconnect
Init
Listen
ResolveHostname
TCPInit


Attributes

Get list of all attributes

Aborted
Connected
LocalIPAddress
LocalPort
RemoteIPAddress
RemotePort


Fields

Field Type
Stream: target: Object
AbstractTCPStream: connectState: Unsigned
localPort: Unsigned
remoteIPAddress: Unsigned
remotePort: Unsigned


Instance template

Class AbstractTCPStream cannot be instantiated.


Class definition

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;