org.kde.qt

Class QSocketDevice

public class QSocketDevice extends QIODevice

Field Summary
static intAlreadyBound
static intBug
static intConnectionRefused
static intDatagram
static intImpossible
static intInaccessible
static intInternalError
static intIPv4
static intIPv6
static intNetworkFailure
static intNoError
static intNoFiles
static intNoResources
static intStream
static intUnknown
static intUnknownError
Constructor Summary
protected QSocketDevice(Class dummy)
QSocketDevice(int type)
QSocketDevice()
QSocketDevice(int type, int protocol, int dummy)
QSocketDevice(int socket, int type)
Method Summary
intaccept()
QHostAddressaddress()
booleanaddressReusable()
longat()
booleanat(long arg1)
booleanatEnd()
booleanbind(QHostAddress arg1, short arg2)
booleanblocking()
longbytesAvailable()
voidclose()
booleanconnect(QHostAddress arg1, short arg2)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
interror()
protected voidfinalize()
Deletes the wrapped C++ instance
voidflush()
intgetch()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisValid()
booleanlisten(int backlog)
booleanopen(int mode)
QHostAddresspeerAddress()
shortpeerPort()
shortport()
intprotocol()
intputch(int arg1)
longreadBlock(StringBuffer data, long maxlen)
intreceiveBufferSize()
intsendBufferSize()
voidsetAddressReusable(boolean arg1)
voidsetBlocking(boolean arg1)
protected voidsetError(int err)
voidsetReceiveBufferSize(int arg1)
voidsetSendBufferSize(int arg1)
voidsetSocket(int socket, int type)
longsize()
intsocket()
inttype()
intungetch(int arg1)
longwaitForMore(int msecs, boolean[] timeout)
longwaitForMore(int msecs)
longwriteBlock(String data, long len)
longwriteBlock(String data, long len, QHostAddress host, short port)

Field Detail

AlreadyBound

public static final int AlreadyBound

Bug

public static final int Bug

ConnectionRefused

public static final int ConnectionRefused

Datagram

public static final int Datagram

Impossible

public static final int Impossible

Inaccessible

public static final int Inaccessible

InternalError

public static final int InternalError

IPv4

public static final int IPv4

IPv6

public static final int IPv6

NetworkFailure

public static final int NetworkFailure

NoError

public static final int NoError

NoFiles

public static final int NoFiles

NoResources

public static final int NoResources

Stream

public static final int Stream

Unknown

public static final int Unknown

UnknownError

public static final int UnknownError

Constructor Detail

QSocketDevice

protected QSocketDevice(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)

Method Detail

accept

public int accept()

address

public QHostAddress address()

addressReusable

public boolean addressReusable()

at

public long at()

at

public boolean at(long arg1)

atEnd

public boolean atEnd()

bind

public boolean bind(QHostAddress arg1, short arg2)

blocking

public boolean blocking()

bytesAvailable

public long bytesAvailable()

close

public void close()

connect

public boolean connect(QHostAddress arg1, short arg2)

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

error

public int error()

finalize

protected void finalize()
Deletes the wrapped C++ instance

flush

public void flush()

getch

public int getch()

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isValid

public boolean isValid()

listen

public boolean listen(int backlog)

open

public boolean open(int mode)

peerAddress

public QHostAddress peerAddress()

peerPort

public short peerPort()

port

public short port()

protocol

public int protocol()

putch

public int putch(int arg1)

readBlock

public long readBlock(StringBuffer data, long maxlen)

receiveBufferSize

public int receiveBufferSize()

sendBufferSize

public int sendBufferSize()

setAddressReusable

public void setAddressReusable(boolean arg1)

setBlocking

public void setBlocking(boolean arg1)

setError

protected void setError(int err)

setReceiveBufferSize

public void setReceiveBufferSize(int arg1)

setSendBufferSize

public void setSendBufferSize(int arg1)

setSocket

public void setSocket(int socket, int type)

size

public long size()

socket

public int socket()

type

public int type()

ungetch

public int ungetch(int arg1)

waitForMore

public long waitForMore(int msecs, boolean[] timeout)

waitForMore

public long waitForMore(int msecs)

writeBlock

public long writeBlock(String data, long len)

writeBlock

public long writeBlock(String data, long len, QHostAddress host, short port)