javax.microedition.io
Interface SocketConnection

All Superinterfaces:
Connection, InputConnection, OutputConnection, StreamConnection

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 option)
           
 void setSocketOption(byte option, int value)
           
 
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 option,
                     int value)
                     throws IllegalArgumentException,
                            IOException
Throws:
IllegalArgumentException
IOException

getSocketOption

int getSocketOption(byte option)
                    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


JSR-82 Javadocs Apache License, Version 2.0 Copyright © 2001-2008 Motorola, Inc. ALL RIGHTS RESERVED.
BlueCove Javadocs
Apache License, Version 2.0 Copyright © 2004-2008 BlueCove Team.