javax.microedition.io
Interface SocketConnection

All Superinterfaces:
Connection, InputConnection, OutputConnection, StreamConnection
All Known Subinterfaces:
SecureConnection

public interface SocketConnection
extends StreamConnection


Field Summary
static byte DELAY
           
static byte KEEPALIVE
           
static byte LINGER
           
static byte RCVBUF
           
static byte SNDBUF
           
 
Method Summary
 String getAddress()
           
 String getLocalAddress()
           
 int getLocalPort()
           
 int getPort()
           
 int getSocketOption(byte arg1)
           
 void setSocketOption(byte arg1, int arg2)
           
 
Methods inherited from interface javax.microedition.io.InputConnection
openDataInputStream, openInputStream
 
Methods inherited from interface javax.microedition.io.Connection
close
 
Methods inherited from interface javax.microedition.io.OutputConnection
openDataOutputStream, openOutputStream
 
Methods inherited from interface javax.microedition.io.Connection
close
 

Field Detail

DELAY

static final byte DELAY
See Also:
Constant Field Values

LINGER

static final byte LINGER
See Also:
Constant Field Values

KEEPALIVE

static final byte KEEPALIVE
See Also:
Constant Field Values

RCVBUF

static final byte RCVBUF
See Also:
Constant Field Values

SNDBUF

static final byte SNDBUF
See Also:
Constant Field Values
Method Detail

setSocketOption

void setSocketOption(byte arg1,
                     int arg2)
                     throws IllegalArgumentException,
                            IOException
Throws:
IllegalArgumentException
IOException

getSocketOption

int getSocketOption(byte arg1)
                    throws IllegalArgumentException,
                           IOException
Throws:
IllegalArgumentException
IOException

getLocalAddress

String getLocalAddress()
                       throws IOException
Throws:
IOException

getLocalPort

int getLocalPort()
                 throws IOException
Throws:
IOException

getAddress

String getAddress()
                  throws IOException
Throws:
IOException

getPort

int getPort()
            throws IOException
Throws:
IOException


Copyright © 2006-2007 Jayway AB. All Rights Reserved.