org.kde.qt

Class QSocket

public class QSocket extends QObject implements QIODeviceInterface

See QSocketSignals for signals emitted by QSocket
Field Summary
static intClosing
static intConnected
static intConnecting
static intConnection
static intErrConnectionRefused
static intErrHostNotFound
static intErrSocketRead
static intHostLookup
static intIdle
Constructor Summary
protected QSocket(Class dummy)
QSocket(QObject parent, String name)
QSocket(QObject parent)
QSocket()
Method Summary
QHostAddressaddress()
longat()
booleanat(long arg1)
booleanatEnd()
longbytesAvailable()
longbytesToWrite()
booleancanReadLine()
StringclassName()
voidclearPendingData()
voidclose()
voidconnectToHost(String host, short port)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
intflags()
voidflush()
intgetch()
booleanisAsynchronous()
booleanisBuffered()
booleanisCombinedAccess()
booleanisDirectAccess()
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisInactive()
booleanisOpen()
booleanisRaw()
booleanisReadable()
booleanisReadWrite()
booleanisSequentialAccess()
booleanisSynchronous()
booleanisTranslated()
booleanisWritable()
QMetaObjectmetaObject()
intmode()
booleanopen(int mode)
QHostAddresspeerAddress()
StringpeerName()
shortpeerPort()
shortport()
intputch(int arg1)
byte[]readAll()
longreadBlock(StringBuffer data, long maxlen)
longreadBufferSize()
longreadLine(String data, long maxlen)
StringreadLine()
booleanreset()
voidresetStatus()
protected voidsetFlags(int f)
protected voidsetMode(int arg1)
voidsetReadBufferSize(long arg1)
voidsetSocket(int arg1)
voidsetSocketDevice(QSocketDevice arg1)
voidsetState(int arg1)
voidsetStatus(int arg1)
protected voidsetType(int arg1)
longsize()
protected voidsn_read(boolean force)
protected voidsn_read()
protected voidsn_write()
intsocket()
QSocketDevicesocketDevice()
intstate()
intstatus()
static Stringtr(String arg1, String arg2)
static Stringtr(String arg1)
intungetch(int arg1)
longwaitForMore(int msecs, boolean[] timeout)
longwaitForMore(int msecs)
longwriteBlock(String data, long len)
longwriteBlock(byte[] data)

Field Detail

Closing

public static final int Closing

Connected

public static final int Connected

Connecting

public static final int Connecting

Connection

public static final int Connection

ErrConnectionRefused

public static final int ErrConnectionRefused

ErrHostNotFound

public static final int ErrHostNotFound

ErrSocketRead

public static final int ErrSocketRead

HostLookup

public static final int HostLookup

Idle

public static final int Idle

Constructor Detail

QSocket

protected QSocket(Class dummy)

QSocket

public QSocket(QObject parent, String name)

QSocket

public QSocket(QObject parent)

QSocket

public QSocket()

Method Detail

address

public QHostAddress address()

at

public long at()

at

public boolean at(long arg1)

atEnd

public boolean atEnd()

bytesAvailable

public long bytesAvailable()

bytesToWrite

public long bytesToWrite()

canReadLine

public boolean canReadLine()

className

public String className()

clearPendingData

public void clearPendingData()

close

public void close()

connectToHost

public void connectToHost(String host, short port)

dispose

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

finalize

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

flags

public int flags()

flush

public void flush()

getch

public int getch()

isAsynchronous

public boolean isAsynchronous()

isBuffered

public boolean isBuffered()

isCombinedAccess

public boolean isCombinedAccess()

isDirectAccess

public boolean isDirectAccess()

isDisposed

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

isInactive

public boolean isInactive()

isOpen

public boolean isOpen()

isRaw

public boolean isRaw()

isReadable

public boolean isReadable()

isReadWrite

public boolean isReadWrite()

isSequentialAccess

public boolean isSequentialAccess()

isSynchronous

public boolean isSynchronous()

isTranslated

public boolean isTranslated()

isWritable

public boolean isWritable()

metaObject

public QMetaObject metaObject()

mode

public int mode()

open

public boolean open(int mode)

peerAddress

public QHostAddress peerAddress()

peerName

public String peerName()

peerPort

public short peerPort()

port

public short port()

putch

public int putch(int arg1)

readAll

public byte[] readAll()

readBlock

public long readBlock(StringBuffer data, long maxlen)

readBufferSize

public long readBufferSize()

readLine

public long readLine(String data, long maxlen)

readLine

public String readLine()

reset

public boolean reset()

resetStatus

public void resetStatus()

setFlags

protected void setFlags(int f)

setMode

protected void setMode(int arg1)

setReadBufferSize

public void setReadBufferSize(long arg1)

setSocket

public void setSocket(int arg1)

setSocketDevice

public void setSocketDevice(QSocketDevice arg1)

setState

public void setState(int arg1)

setStatus

public void setStatus(int arg1)

setType

protected void setType(int arg1)

size

public long size()

sn_read

protected void sn_read(boolean force)

sn_read

protected void sn_read()

sn_write

protected void sn_write()

socket

public int socket()

socketDevice

public QSocketDevice socketDevice()

state

public int state()

status

public int status()

tr

public static String tr(String arg1, String arg2)

tr

public static String tr(String arg1)

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(byte[] data)