summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQSocketDevice.java
blob: 06353dbe0f64fb66781c38f03f1ef7e42e46c647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.qt;

import org.trinitydesktop.qt.Qt;

public class TQSocketDevice extends TQIODevice  {
	protected TQSocketDevice(Class dummy){super((Class) null);}
	public static final int Stream = 0;
	public static final int Datagram = 1;

	public static final int IPv4 = 0;
	public static final int IPv6 = 1;
	public static final int Unknown = 2;

	public static final int NoError = 0;
	public static final int AlreadyBound = 1;
	public static final int Inaccessible = 2;
	public static final int NoResources = 3;
	public static final int InternalError = 4;
	public static final int Bug = InternalError;
	public static final int Impossible = 5;
	public static final int NoFiles = 6;
	public static final int ConnectionRefused = 7;
	public static final int NetworkFailure = 8;
	public static final int UnknownError = 9;

	public TQSocketDevice(int type) {
		super((Class) null);
		newTQSocketDevice(type);
	}
	private native void newTQSocketDevice(int type);
	public TQSocketDevice() {
		super((Class) null);
		newTQSocketDevice();
	}
	private native void newTQSocketDevice();
	public TQSocketDevice(int type, int protocol, int dummy) {
		super((Class) null);
		newTQSocketDevice(type,protocol,dummy);
	}
	private native void newTQSocketDevice(int type, int protocol, int dummy);
	public TQSocketDevice(int socket, int type) {
		super((Class) null);
		newTQSocketDevice(socket,type);
	}
	private native void newTQSocketDevice(int socket, int type);
	public native boolean isValid();
	public native int type();
	public native int protocol();
	public native int socket();
	public native void setSocket(int socket, int type);
	public native boolean open(int mode);
	public native void close();
	public native void flush();
	public native long size();
	public native long at();
	public native boolean at(long arg1);
	public native boolean atEnd();
	public native boolean blocking();
	public native void setBlocking(boolean arg1);
	public native boolean addressReusable();
	public native void setAddressReusable(boolean arg1);
	public native int receiveBufferSize();
	public native void setReceiveBufferSize(int arg1);
	public native int sendBufferSize();
	public native void setSendBufferSize(int arg1);
	public native boolean connect(TQHostAddress arg1, short arg2);
	public native boolean bind(TQHostAddress arg1, short arg2);
	public native boolean listen(int backlog);
	public native int accept();
	public native long bytesAvailable();
	public native long waitForMore(int msecs, boolean[] timeout);
	public native long waitForMore(int msecs);
	public native long readBlock(StringBuffer data, long maxlen);
	public native long writeBlock(String data, long len);
	public native long writeBlock(String data, long len, TQHostAddress host, short port);
	public native int getch();
	public native int putch(int arg1);
	public native int ungetch(int arg1);
	public native short port();
	public native short peerPort();
	public native TQHostAddress address();
	public native TQHostAddress peerAddress();
	public native int error();
	protected native void setError(int err);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}