Instances of this class represent plain stream (TCP) sockets.
Functions


void java_net_PlainSocketImpl_socketCreate(struct Hjava_net_PlainSocketImpl* this, jbool stream)
Create a new stream socket.
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
- jbool stream
Ignored parameter, uses 1.0 API semantics for PlainSocketImpl.

void java_net_PlainSocketImpl_socketConnect(struct Hjava_net_PlainSocketImpl* this, struct Hjava_net_InetAddress* daddr, jint dport)
Connect the socket to someone.
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
- struct Hjava_net_InetAddress* daddr
InetAddress object of the party to be connected to.
- jint dport
The port number of the party to be connected to.

void java_net_PlainSocketImpl_socketBind(struct Hjava_net_PlainSocketImpl* this, struct Hjava_net_InetAddress* laddr, jint lport)
Bind a port to the socket (address is ignored in Plan9).
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
- struct Hjava_net_InetAddress* laddr
The port number to bind to.
- jint lport
The local address to bind to.

void java_net_PlainSocketImpl_socketListen(struct Hjava_net_PlainSocketImpl* this, jint count)
Turns this socket into a listener.
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
- jint count
The backlog queue length.

void java_net_PlainSocketImpl_socketAccept(struct Hjava_net_PlainSocketImpl* this, struct Hjava_net_SocketImpl* sock)
Accept a connection.
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
- struct Hjava_net_SocketImpl* sock
The SocketImpl object of the new accepted connection.

jint java_net_PlainSocketImpl_socketAvailable(struct Hjava_net_PlainSocketImpl* this)
Returns how many bytes can be read without blocking.
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
Return value
- Integer number of non-blocking readable bytes.

void java_net_PlainSocketImpl_socketClose(struct Hjava_net_PlainSocketImpl* this)
Closes this socket.
Arguments
- struct Hjava_net_PlainSocketImpl* this
Reference to the current (this) object.
File generated from "PlainSocketImpl.c" by autodoc. 21-03-1998 13:32