com.msi.network.connection
Interface ServiceInterface

All Known Implementing Classes:
TCPInterface

public interface ServiceInterface

Models the interface used by the server to field client requests. It is on this interface that connections appear between a server thread and a client. This contains things that persist across service threads.

Version:
1.0
Author:
Ken Thompson

Field Summary
static int TCP
          Describe constant TCP here.
static int UDP
          Describe constant UDP here.
 
Method Summary
 void close()
          Shut down cleanly.
 Connection getConnection()
          Retrieve a valid connection.
 

Field Detail

TCP

public static final int TCP
Describe constant TCP here.

See Also:
Constant Field Values

UDP

public static final int UDP
Describe constant UDP here.

See Also:
Constant Field Values
Method Detail

getConnection

public Connection getConnection()
Retrieve a valid connection.

Returns:
a Connection value

close

public void close()
Shut down cleanly.



Copyright © 2001-2002 MileStone Solutions, Inc. All Rights Reserved.