38 |
package java.net; |
package java.net; |
39 |
|
|
40 |
import java.io.*; |
import java.io.*; |
|
import java.nio.channels.*; |
|
41 |
|
|
42 |
/* Written using on-line Java Platform 1.2 API Specification. |
/* Written using on-line Java Platform 1.2 API Specification. |
43 |
* Status: I believe all methods are implemented. |
* Status: I believe all methods are implemented. |
534 |
* |
* |
535 |
* @exception SocketException If an error occurs or Socket not connected |
* @exception SocketException If an error occurs or Socket not connected |
536 |
* |
* |
537 |
* @since Java 1.2 |
* @since 1.2 |
538 |
*/ |
*/ |
539 |
public void setSendBufferSize (int size) throws SocketException |
public void setSendBufferSize (int size) throws SocketException |
540 |
{ |
{ |
556 |
* |
* |
557 |
* @exception SocketException If an error occurs or socket not connected |
* @exception SocketException If an error occurs or socket not connected |
558 |
* |
* |
559 |
* @since Java 1.2 |
* @since 1.2 |
560 |
*/ |
*/ |
561 |
public int getSendBufferSize () throws SocketException |
public int getSendBufferSize () throws SocketException |
562 |
{ |
{ |
580 |
* |
* |
581 |
* @exception SocketException If an error occurs or Socket is not connected |
* @exception SocketException If an error occurs or Socket is not connected |
582 |
* |
* |
583 |
* @since Java 1.2 |
* @since 1.2 |
584 |
*/ |
*/ |
585 |
public void setReceiveBufferSize (int size) throws SocketException |
public void setReceiveBufferSize (int size) throws SocketException |
586 |
{ |
{ |
602 |
* |
* |
603 |
* @exception SocketException If an error occurs or Socket is not connected |
* @exception SocketException If an error occurs or Socket is not connected |
604 |
* |
* |
605 |
* @since Java 1.2 |
* @since 1.2 |
606 |
*/ |
*/ |
607 |
public int getReceiveBufferSize () throws SocketException |
public int getReceiveBufferSize () throws SocketException |
608 |
{ |
{ |
667 |
|
|
668 |
factory = fac; |
factory = fac; |
669 |
} |
} |
|
|
|
|
public void shutdownInput() throws IOException |
|
|
{ |
|
|
} |
|
|
|
|
|
public void shutdownOutput() throws IOException |
|
|
{ |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
* returns the socket channel associated with |
|
|
* this socket. |
|
|
* It returns null if no associated socket exists. |
|
|
*/ |
|
|
|
|
|
SocketChannel ch; // this field must have been set if created by SocketChannel |
|
|
|
|
|
public SocketChannel getChannel() |
|
|
{ |
|
|
return ch; |
|
|
} |
|
670 |
} |
} |