package javax.microedition.io;

import java.io.IOException;

public interface SocketConnection extends StreamConnection
{
 public byte DELAY = 0;
 public byte LINGER = 1;
 public byte KEEPALIVE = 2;
 public byte RCVBUF = 3;
 public byte SNDBUF = 4;

 public void setSocketOption(byte, int) throws IllegalArgumentException, IOException;
 
 public int getSocketOption(byte) throws IllegalArgumentException, IOException;
 
 public String getLocalAddress() throws IOException;
 
 public int getLocalPort() throws IOException;
 
 public String getAddress() throws IOException;
 
 public int getPort() throws IOException;
 
}