public interface ServerTcpConnection
OfficeFloor
.Modifier and Type | Method and Description |
---|---|
ServerInputStream |
getInputStream()
Obtains the
ServerInputStream that provides access to the data sent
from the client. |
ServerOutputStream |
getOutputStream()
Obtains the
ServerOutputStream to write data back to the client. |
boolean |
waitOnClientData()
Flags for the
ManagedObject to not execute another Task
until further data is received from the client. |
ServerInputStream getInputStream()
ServerInputStream
that provides access to the data sent
from the client.ServerInputStream
.boolean waitOnClientData() throws IOException
Flags for the ManagedObject
to not execute another Task
until further data is received from the client.
On calling this the next time a Task
is invoked using this
ManagedObject
, data will be available from the
ServerInputStream
.
true
indicating if will wait on client data.
false
if client data is available and therefore will
not wait.IOException
- If fails to initiate waiting on client.ServerOutputStream getOutputStream()
Obtains the ServerOutputStream
to write data back to the client.
Closing the ServerOutputStream
will result in closing the
Connection
.
ServerOutputStream
.Copyright © 2005–2016. All rights reserved.