com.sun.sgs.impl.client.comm
Interface ClientConnection

All Known Implementing Classes:
SimpleClientConnection

public interface ClientConnection

Represents an abstract network connection with the Project Darkstar Server.


Method Summary
 void disconnect()
          Asynchronously closes the connection, freeing any resources in use.
 void sendMessage(ByteBuffer message)
          Asynchronously sends data to the server.
 

Method Detail

sendMessage

void sendMessage(ByteBuffer message)
                 throws IOException
Asynchronously sends data to the server.

The specified byte buffer must not be modified after invoking this method; otherwise this method may have unpredictable results.

Parameters:
message - the message data to send
Throws:
IOException - if there was a synchronous problem sending the message

disconnect

void disconnect()
                throws IOException
Asynchronously closes the connection, freeing any resources in use. The connection should not be considered closed until ClientConnectionListener.disconnected(boolean, byte[]) is invoked.

Throws:
IOException - if there was a synchronous problem closing the connection

Project Darkstar, Version 0.9.9.7
2013-07-29 20:58:27

Copyright © 2007-2013 Sun Microsystems, Inc. All rights reserved