Yazi Ekle
-
java
|
javax
|
org
java
>
java.net
>
java.net.socket
>
Class: java.net.Socket
java.lang.Object
java.net.Socket
public class
Socket
extends
Object
FIELDS:
CONSTRUCTORS:
public
Socket
()
public
Socket
(
Proxy
proxy)
protected
Socket
(
SocketImpl
impl)
public
Socket
(
String
host, int port)
public
Socket
(
InetAddress
address, int port)
public
Socket
(
String
host, int port,
InetAddress
localAddr, int localPort)
public
Socket
(
InetAddress
address, int port,
InetAddress
localAddr, int localPort)
public
Socket
(
String
host, int port, boolean stream)
public
Socket
(
InetAddress
host, int port, boolean stream)
METHODS:
public
void
bind
(
SocketAddress
bindpoint)
Throws:
IOException
Throws:
IllegalArgumentException
public
void
close
()
Throws:
IOException
public
void
connect
(
SocketAddress
endpoint)
Throws:
IOException
Throws:
IllegalBlockingModeException
Throws:
IllegalArgumentException
public
void
connect
(
SocketAddress
endpoint, int timeout)
Throws:
IOException
Throws:
SocketTimeoutException
Throws:
IllegalBlockingModeException
Throws:
IllegalArgumentException
public
SocketChannel
getChannel
()
public
InetAddress
getInetAddress
()
public
InputStream
getInputStream
()
Throws:
IOException
public
boolean
getKeepAlive
()
Throws:
SocketException
public
InetAddress
getLocalAddress
()
public
int
getLocalPort
()
public
SocketAddress
getLocalSocketAddress
()
public
boolean
getOOBInline
()
Throws:
SocketException
public
OutputStream
getOutputStream
()
Throws:
IOException
public
int
getPort
()
public
int
getReceiveBufferSize
()
Throws:
SocketException
public
SocketAddress
getRemoteSocketAddress
()
public
boolean
getReuseAddress
()
Throws:
SocketException
public
int
getSendBufferSize
()
Throws:
SocketException
public
int
getSoLinger
()
Throws:
SocketException
public
int
getSoTimeout
()
Throws:
SocketException
public
boolean
getTcpNoDelay
()
Throws:
SocketException
public
int
getTrafficClass
()
Throws:
SocketException
public
boolean
isBound
()
public
boolean
isClosed
()
public
boolean
isConnected
()
public
boolean
isInputShutdown
()
public
boolean
isOutputShutdown
()
public
void
sendUrgentData
(int data)
Throws:
IOException
public
void
setKeepAlive
(boolean on)
Throws:
SocketException
public
void
setOOBInline
(boolean on)
Throws:
SocketException
public
void
setPerformancePreferences
(int connectionTime, int latency, int bandwidth)
public
void
setReceiveBufferSize
(int size)
Throws:
IllegalArgumentException
Throws:
SocketException
public
void
setReuseAddress
(boolean on)
Throws:
SocketException
public
void
setSendBufferSize
(int size)
Throws:
SocketException
Throws:
IllegalArgumentException
public
void
setSoLinger
(boolean on, int linger)
Throws:
SocketException
Throws:
IllegalArgumentException
public
void
setSoTimeout
(int timeout)
Throws:
SocketException
public static
void
setSocketImplFactory
(
SocketImplFactory
fac)
Throws:
IOException
Throws:
SocketException
Throws:
SecurityException
public
void
setTcpNoDelay
(boolean on)
Throws:
SocketException
public
void
setTrafficClass
(int tc)
Throws:
SocketException
public
void
shutdownInput
()
Throws:
IOException
public
void
shutdownOutput
()
Throws:
IOException
public
String
toString
()
Overrides:
Object
INHERITED METHODS:
getClass()
,
hashCode()
,
equals(java.lang.Object)
,
clone()
,
toString()
,
notify()
,
notifyAll()
,
wait(long)
,
wait(long, int)
,
wait()
,
finalize()
,
SUBCLASSES:
SSLSocket
,
Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net