org.kde.qt
Class QSocketDevice
java.lang.Object
org.kde.qt.QIODevice
org.kde.qt.QSocketDevice
- All Implemented Interfaces:
- QIODeviceInterface, QtSupport
public class QSocketDevice
- extends QIODevice
Fields inherited from class org.kde.qt.QIODevice |
IO_AbortError, IO_Append, IO_Async, IO_Combined, IO_ConnectError, IO_Direct, IO_FatalError, IO_ModeMask, IO_Ok, IO_Open, IO_OpenError, IO_Raw, IO_ReadError, IO_ReadOnly, IO_ReadWrite, IO_ResourceError, IO_Sequential, IO_StateMask, IO_TimeOutError, IO_Translate, IO_Truncate, IO_TypeMask, IO_UnspecifiedError, IO_WriteError, IO_WriteOnly |
Methods inherited from class org.kde.qt.QIODevice |
flags, isAsynchronous, isBuffered, isCombinedAccess, isDirectAccess, isInactive, isOpen, isRaw, isReadable, isReadWrite, isSequentialAccess, isSynchronous, isTranslated, isWritable, mode, readAll, readLine, reset, resetStatus, state, status, writeBlock |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stream
public static final int Stream
- See Also:
- Constant Field Values
Datagram
public static final int Datagram
- See Also:
- Constant Field Values
IPv4
public static final int IPv4
- See Also:
- Constant Field Values
IPv6
public static final int IPv6
- See Also:
- Constant Field Values
Unknown
public static final int Unknown
- See Also:
- Constant Field Values
NoError
public static final int NoError
- See Also:
- Constant Field Values
AlreadyBound
public static final int AlreadyBound
- See Also:
- Constant Field Values
Inaccessible
public static final int Inaccessible
- See Also:
- Constant Field Values
NoResources
public static final int NoResources
- See Also:
- Constant Field Values
InternalError
public static final int InternalError
- See Also:
- Constant Field Values
Bug
public static final int Bug
- See Also:
- Constant Field Values
Impossible
public static final int Impossible
- See Also:
- Constant Field Values
NoFiles
public static final int NoFiles
- See Also:
- Constant Field Values
ConnectionRefused
public static final int ConnectionRefused
- See Also:
- Constant Field Values
NetworkFailure
public static final int NetworkFailure
- See Also:
- Constant Field Values
UnknownError
public static final int UnknownError
- See Also:
- Constant Field Values
QSocketDevice
protected QSocketDevice(java.lang.Class dummy)
QSocketDevice
public QSocketDevice(int type)
QSocketDevice
public QSocketDevice()
QSocketDevice
public QSocketDevice(int type,
int protocol,
int dummy)
QSocketDevice
public QSocketDevice(int socket,
int type)
isValid
public boolean isValid()
type
public int type()
protocol
public int protocol()
socket
public int socket()
setSocket
public void setSocket(int socket,
int type)
open
public boolean open(int mode)
- Specified by:
open
in interface QIODeviceInterface
- Overrides:
open
in class QIODevice
close
public void close()
- Specified by:
close
in interface QIODeviceInterface
- Overrides:
close
in class QIODevice
flush
public void flush()
- Specified by:
flush
in interface QIODeviceInterface
- Overrides:
flush
in class QIODevice
size
public long size()
- Specified by:
size
in interface QIODeviceInterface
- Overrides:
size
in class QIODevice
at
public long at()
- Specified by:
at
in interface QIODeviceInterface
- Overrides:
at
in class QIODevice
at
public boolean at(long arg1)
- Specified by:
at
in interface QIODeviceInterface
- Overrides:
at
in class QIODevice
atEnd
public boolean atEnd()
- Specified by:
atEnd
in interface QIODeviceInterface
- Overrides:
atEnd
in class QIODevice
blocking
public boolean blocking()
setBlocking
public void setBlocking(boolean arg1)
addressReusable
public boolean addressReusable()
setAddressReusable
public void setAddressReusable(boolean arg1)
receiveBufferSize
public int receiveBufferSize()
setReceiveBufferSize
public void setReceiveBufferSize(int arg1)
sendBufferSize
public int sendBufferSize()
setSendBufferSize
public void setSendBufferSize(int arg1)
connect
public boolean connect(QHostAddress arg1,
short arg2)
bind
public boolean bind(QHostAddress arg1,
short arg2)
listen
public boolean listen(int backlog)
accept
public int accept()
bytesAvailable
public long bytesAvailable()
waitForMore
public long waitForMore(int msecs,
boolean[] timeout)
waitForMore
public long waitForMore(int msecs)
readBlock
public long readBlock(java.lang.StringBuffer data,
long maxlen)
- Specified by:
readBlock
in interface QIODeviceInterface
- Overrides:
readBlock
in class QIODevice
writeBlock
public long writeBlock(java.lang.String data,
long len)
- Specified by:
writeBlock
in interface QIODeviceInterface
- Overrides:
writeBlock
in class QIODevice
writeBlock
public long writeBlock(java.lang.String data,
long len,
QHostAddress host,
short port)
getch
public int getch()
- Specified by:
getch
in interface QIODeviceInterface
- Overrides:
getch
in class QIODevice
putch
public int putch(int arg1)
- Specified by:
putch
in interface QIODeviceInterface
- Overrides:
putch
in class QIODevice
ungetch
public int ungetch(int arg1)
- Specified by:
ungetch
in interface QIODeviceInterface
- Overrides:
ungetch
in class QIODevice
port
public short port()
peerPort
public short peerPort()
address
public QHostAddress address()
peerAddress
public QHostAddress peerAddress()
error
public int error()
setError
protected void setError(int err)
finalize
protected void finalize()
throws java.lang.InternalError
- Deletes the wrapped C++ instance
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.InternalError
dispose
public void dispose()
- Delete the wrapped C++ instance ahead of finalize()
isDisposed
public boolean isDisposed()
- Has the wrapped C++ instance been deleted?