Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1804

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:07:30 CEST 2007 -->
<TITLE>
QAbstractSocket
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.network.QAbstractSocket class">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QAbstractSocket";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.NetworkLayerProtocol.html" title="enum in com.trolltech.qt.network"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/network/QAbstractSocket.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QAbstractSocket.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.network</FONT>
<BR>
Class QAbstractSocket</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">com.trolltech.qt.QSignalEmitter</A>
      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">com.trolltech.qt.QtJambiObject</A>
          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QObject</A>
              <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">com.trolltech.qt.core.QIODevice</A>
                  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.trolltech.qt.network.QAbstractSocket</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/trolltech/qt/network/QTcpSocket.html" title="class in com.trolltech.qt.network">QTcpSocket</A>, <A HREF="../../../../com/trolltech/qt/network/QUdpSocket.html" title="class in com.trolltech.qt.network">QUdpSocket</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>QAbstractSocket</B><DT>extends <A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></DL>
</PRE>

<P>
<p>The <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> class provides the base functionality common to all socket types.</p>
<p><a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> is the base class for <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> and <a href="QUdpSocket.html"><tt>QUdpSocket</tt></a> and contains all common functionality of these two classes. If you need a socket, you have two options:</p>
<ul>
<li>Instantiate <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> or <a href="QUdpSocket.html"><tt>QUdpSocket</tt></a>.</li>
<li>Create a native socket descriptor, instantiate <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>, and call <a href="QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setSocketDescriptor</tt></a> to wrap the native socket.</li>
</ul>
<p>TCP (Transmission Control Protocol) is a reliable, stream-oriented, connection-oriented transport protocol. UDP (User Datagram Protocol) is an unreliable, datagram-oriented, connectionless protocol. In practice, this means that TCP is better suited for continuous transmission of data, whereas the more lightweight UDP can be used when reliability isn't important.</p>
<p><a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s API unifies most of the differences between the two protocols. For example, although UDP is connectionless, connectToHost() establishes a virtual connection for UDP sockets, enabling you to use <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> in more or less the same way regardless of the underlying protocol. Internally, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> remembers the address and port passed to connectToHost(), and functions like <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#read(long)"><tt>read</tt></a> and <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#write(com.trolltech.qt.core.QByteArray)"><tt>write</tt></a> use these values.</p>
<p>At any time, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> has a state (returned by <a href="QAbstractSocket.html#state()"><tt>state</tt></a>). The initial state is <a href="QAbstractSocket.html#SocketState-enum"><tt>UnconnectedState</tt></a>. After calling connectToHost(), the socket first enters <a href="QAbstractSocket.html#SocketState-enum"><tt>HostLookupState</tt></a>. If the host is found, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> enters <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectingState</tt></a> and emits the <a href="QAbstractSocket.html#hostFound()"><tt>hostFound</tt></a> signal. When the connection has been established, it enters <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectedState</tt></a> and emits <a href="QAbstractSocket.html#connected()"><tt>connected</tt></a>. If an error occurs at any stage, <a href="QAbstractSocket.html#error()"><tt>error</tt></a> is emitted. Whenever the state changes, <a href="QAbstractSocket.html#stateChanged(com.trolltech.qt.network.QAbstractSocket.SocketState)"><tt>stateChanged</tt></a> is emitted. For convenience, <a href="QAbstractSocket.html#isValid()"><tt>isValid</tt></a> returns true if the socket is ready for reading and writing, but note that the socket's state must be <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectedState</tt></a> before reading and writing can occur.</p>
<p>Read or write data by calling <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#read(long)"><tt>read</tt></a> or <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#write(com.trolltech.qt.core.QByteArray)"><tt>write</tt></a>, or use the convenience functions <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#readLine(long)"><tt>readLine</tt></a> and <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#readAll()"><tt>readAll</tt></a>. <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> also inherits getChar(), putChar(), and ungetChar() from <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#QIODevice(com.trolltech.qt.core.QObject)"><tt>QIODevice</tt></a>, which work on single bytes. For every chunk of data that has been written to the socket, the <a href="QAbstractSocket.html#bytesWritten(long)"><tt>bytesWritten</tt></a> signal is emitted.</p>
<p>The <a href="QAbstractSocket.html#readyRead()"><tt>readyRead</tt></a> signal is emitted every time a new chunk of data has arrived. <a href="QAbstractSocket.html#bytesAvailable()"><tt>bytesAvailable</tt></a> then returns the number of bytes that are available for reading. Typically, you would connect the <a href="QAbstractSocket.html#readyRead()"><tt>readyRead</tt></a> signal to a slot and read all available data there. If you don't read all the data at once, the remaining data will still be available later, and any new incoming data will be appended to <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s internal read buffer. To limit the size of the read buffer, call <a href="QAbstractSocket.html#setReadBufferSize(long)"><tt>setReadBufferSize</tt></a>.</p>
<p>To close the socket, call <a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>. <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> enters QAbstractSocket::ClosingState, then emits closing(). After all pending data has been written to the socket, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> actually closes the socket, enters QAbstractSocket::ClosedState, and emits <a href="QAbstractSocket.html#disconnected()"><tt>disconnected</tt></a>. If you want to abort a connection immediately, discarding all pending data, call <a href="QAbstractSocket.html#abort()"><tt>abort</tt></a> instead. If the remote host closes the connection, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> will emit error(QAbstractSocket::RemoteHostClosedError), during which the socket state will still be <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectedState</tt></a>, and then the <a href="QAbstractSocket.html#disconnected()"><tt>disconnected</tt></a> signal will be emitted.</p>
<p>The port and address of the connected peer is fetched by calling peerPort() and <a href="QAbstractSocket.html#peerAddress()"><tt>peerAddress</tt></a>. <a href="QAbstractSocket.html#peerName()"><tt>peerName</tt></a> returns the host name of the peer, as passed to connectToHost(). localPort() and <a href="QAbstractSocket.html#localAddress()"><tt>localAddress</tt></a> return the port and address of the local socket.</p>
<p><a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> provides a set of functions that suspend the calling thread until certain signals are emitted. These functions can be used to implement blocking sockets:</p>
<ul>
<li><a href="QAbstractSocket.html#waitForConnected(int)"><tt>waitForConnected</tt></a> blocks until a connection has been established.</li>
<li><a href="QAbstractSocket.html#waitForReadyRead(int)"><tt>waitForReadyRead</tt></a> blocks until new data is available for reading.</li>
<li><a href="QAbstractSocket.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a> blocks until one payload of data has been written to the socket.</li>
<li><a href="QAbstractSocket.html#waitForDisconnected(int)"><tt>waitForDisconnected</tt></a> blocks until the connection has closed.</li>
</ul>
<p>We show an example:</p>
<pre>        int numRead = 0, numReadTotal = 0;
        char buffer[50];

        forever {
            numRead  = socket.read(buffer, 50);

            <span class="comment">// do whatever with array</span>

            numReadTotal += numRead;
            if (numRead == 0 &amp;&amp; !socket.waitForReadyRead())
                break;
        }</pre>
<p>If waitForReadyRead() returns false, the connection has been closed or an error has occurred.</p>
<p>Programming with a blocking socket is radically different from programming with a non-blocking socket. A blocking socket doesn't require an event loop and typically leads to simpler code. However, in a GUI application, blocking sockets should only be used in non-GUI threads, to avoid freezing the user interface. See the network/fortuneclient</tt> and network/blockingfortuneclient</tt> examples for an overview of both approaches.</p>
<p><a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> can be used with <a href="%2E%2E/core/QTextStream.html"><tt>QTextStream</tt></a> and <a href="%2E%2E/core/QDataStream.html"><tt>QDataStream</tt></a>'s stream operators (operator&lt;&lt;() and operator&gt;&gt;()). There is one issue to be aware of, though: You must make sure that enough data is available before attempting to read it using operator&gt;&gt;().</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QFtp.html"><tt>QFtp</tt></a>, 
<a href="QHttp.html"><tt>QHttp</tt></a>, 
<a href="QTcpServer.html"><tt>QTcpServer</tt></a></DL>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->

<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.NetworkLayerProtocol.html" title="enum in com.trolltech.qt.network">QAbstractSocket.NetworkLayerProtocol</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the network layer protocol values used in Qt.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the socket errors that can occur.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the different states in which a socket can be.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketType.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketType</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This enum describes the transport layer protocol.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<A NAME="nested_classes_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="type parameter in QSignalEmitter.Signal1">A</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="type parameter in QSignalEmitter.Signal2">B</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="class in com.trolltech.qt">QSignalEmitter.Signal3</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal3.html" title="type parameter in QSignalEmitter.Signal3">C</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="class in com.trolltech.qt">QSignalEmitter.Signal4</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal4.html" title="type parameter in QSignalEmitter.Signal4">D</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="class in com.trolltech.qt">QSignalEmitter.Signal5</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal5.html" title="type parameter in QSignalEmitter.Signal5">E</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="class in com.trolltech.qt">QSignalEmitter.Signal6</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal6.html" title="type parameter in QSignalEmitter.Signal6">F</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="class in com.trolltech.qt">QSignalEmitter.Signal7</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal7.html" title="type parameter in QSignalEmitter.Signal7">G</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="class in com.trolltech.qt">QSignalEmitter.Signal8</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal8.html" title="type parameter in QSignalEmitter.Signal8">H</A>&gt;, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="class in com.trolltech.qt">QSignalEmitter.Signal9</A>&lt;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">A</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">B</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">C</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">D</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">E</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">F</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">G</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">H</A>,<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal9.html" title="type parameter in QSignalEmitter.Signal9">I</A>&gt;</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#connected">connected</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted after connectToHost() has been called and a connection has been successfully established.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#disconnected">disconnected</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted when the socket has been disconnected.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#error">error</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted after an error occurred.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#hostFound">hostFound</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted after connectToHost() has been called and the host lookup has succeeded.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>,<A HREF="../../../../com/trolltech/qt/network/QAuthenticator.html" title="class in com.trolltech.qt.network">QAuthenticator</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#proxyAuthenticationRequired">proxyAuthenticationRequired</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#stateChanged">stateChanged</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This signal is emitted whenever <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s state changes.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#aboutToClose">aboutToClose</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesWritten">bytesWritten</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readyRead">readyRead</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)">QAbstractSocket</A></B>(<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketType.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketType</A>&nbsp;socketType,
                <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new abstract socket of type <tt>socketType</tt>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#abort()">abort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Aborts the current connection and resets the socket.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#atEnd()">atEnd</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#bytesAvailable()">bytesAvailable</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of incoming bytes that are waiting to be read.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#bytesToWrite()">bytesToWrite</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bytes that are waiting to be written.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#canReadLine()">canReadLine</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if a line of data can be read from the socket; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disconnects the socket's connection with the host.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#connectToHost(com.trolltech.qt.network.QHostAddress, int, com.trolltech.qt.core.QIODevice.OpenMode)">connectToHost</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A>&nbsp;host,
              int&nbsp;port,
              <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to make a connection to <tt>address</tt> on port <tt>port</tt> with open mode
<tt>mode</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#connectToHost(java.lang.String, int, com.trolltech.qt.core.QIODevice.OpenMode)">connectToHost</A></B>(java.lang.String&nbsp;host,
              int&nbsp;port,
              <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to make a connection to <tt>host</tt> on the given <tt>port</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#connectToHostImplementation(java.lang.String, int, com.trolltech.qt.core.QIODevice.OpenMode)">connectToHostImplementation</A></B>(java.lang.String&nbsp;host,
                            int&nbsp;port,
                            <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contains the implementation of connectToHost().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#disconnectFromHost()">disconnectFromHost</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to close the socket.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#disconnectFromHostImplementation()">disconnectFromHostImplementation</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contains the implementation of <a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#error()">error</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the type of error that last occurred.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#flush()">flush</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function writes as much as possible from the internal write buffer to the underlying network socket, without blocking.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html" title="class in com.trolltech.qt.network">QAbstractSocket</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#fromNativePointer(com.trolltech.qt.QNativePointer)">fromNativePointer</A></B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function returns the QAbstractSocket instance pointed to by nativePointer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#isSequential()">isSequential</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#isValid()">isValid</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the socket is valid and ready for use; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#localAddress()">localAddress</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the host address of the local socket if available; otherwise returns QHostAddress::Null.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#localPort()">localPort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the host port number (in native byte order) of the local
socket if available; otherwise returns 0.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#peerAddress()">peerAddress</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the address of the connected peer if the socket is in <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectedState</tt></a>; otherwise returns QHostAddress::Null.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#peerName()">peerName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of the peer as specified by connectToHost(), or an empty <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> if connectToHost() has not been called.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#peerPort()">peerPort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the port of the connected peer if the socket is in
ConnectedState; otherwise returns 0.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#proxy()">proxy</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the network proxy for this socket.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#readBufferSize()">readBufferSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the internal read buffer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#readData(byte[])">readData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#readData(byte[])"><tt>readData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#readLineData(byte[])">readLineData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#readLineData(byte[])"><tt>readLineData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setLocalAddress(com.trolltech.qt.network.QHostAddress)">setLocalAddress</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A>&nbsp;address)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the address on the local side of a connection to <tt>address</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setLocalPort(int)">setLocalPort</A></B>(int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the local port of this QAbstractSocket to <tt>port</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setPeerAddress(com.trolltech.qt.network.QHostAddress)">setPeerAddress</A></B>(<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A>&nbsp;address)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the address of the remote side of the connection to <tt>address</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setPeerName(java.lang.String)">setPeerName</A></B>(java.lang.String&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the host name of the remote peer to <tt>name</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setPeerPort(int)">setPeerPort</A></B>(int&nbsp;port)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the peer port of this QAbstractSocket to <tt>port</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setProxy(com.trolltech.qt.network.QNetworkProxy)">setProxy</A></B>(<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>&nbsp;networkProxy)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the explicit network proxy for this socket to <tt>networkProxy</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setReadBufferSize(long)">setReadBufferSize</A></B>(long&nbsp;size)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the size of <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s internal read buffer to be <tt>size</tt> bytes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setSocketDescriptor(int)">setSocketDescriptor</A></B>(int&nbsp;socketDescriptor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setSocketDescriptor</tt></a>(<tt>socketDescriptor</tt>, ConnectedState, ReadWrite).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState)">setSocketDescriptor</A></B>(int&nbsp;socketDescriptor,
                    <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setSocketDescriptor</tt></a>(<tt>socketDescriptor</tt>, <tt>state</tt>, ReadWrite).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)">setSocketDescriptor</A></B>(int&nbsp;socketDescriptor,
                    <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state,
                    <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;openMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> with the native socket descriptor <tt>socketDescriptor</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenModeFlag...)">setSocketDescriptor</A></B>(int&nbsp;socketDescriptor,
                    <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state,
                    <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;openMode)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> with the native socket descriptor <tt>socketDescriptor</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setSocketError(com.trolltech.qt.network.QAbstractSocket.SocketError)">setSocketError</A></B>(<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A>&nbsp;socketError)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the type of error that last occurred to <tt>socketError</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#setSocketState(com.trolltech.qt.network.QAbstractSocket.SocketState)">setSocketState</A></B>(<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the state of the socket to <tt>state</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#socketDescriptor()">socketDescriptor</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the native socket descriptor of the <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> object if this is available; otherwise returns -1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketType.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#socketType()">socketType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the socket type (TCP, UDP, or other).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#state()">state</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the state of the socket.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#waitForBytesWritten(int)">waitForBytesWritten</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function is reimplemented for internal reasons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#waitForConnected()">waitForConnected</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#waitForConnected(int)"><tt>waitForConnected</tt></a>(30000).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#waitForConnected(int)">waitForConnected</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Waits until the socket is connected, up to <tt>msecs</tt> milliseconds.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#waitForDisconnected()">waitForDisconnected</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#waitForDisconnected(int)"><tt>waitForDisconnected</tt></a>(30000).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#waitForDisconnected(int)">waitForDisconnected</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Waits until the socket has disconnected, up to <tt>msecs</tt> milliseconds.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#waitForReadyRead(int)">waitForReadyRead</A></B>(int&nbsp;msecs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This function blocks until data is available for reading and the readyRead() signal has been emitted.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html#writeData(byte[])">writeData</A></B>(byte[]&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Equivalent to <a href="QAbstractSocket.html#writeData(byte[])"><tt>writeData</tt></a>(<tt>data</tt>, ).</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QIODevice"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#errorString()">errorString</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#getByte()">getByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isOpen()">isOpen</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isReadable()">isReadable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isTextModeEnabled()">isTextModeEnabled</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isWritable()">isWritable</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#open(com.trolltech.qt.core.QIODevice.OpenMode)">open</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#open(com.trolltech.qt.core.QIODevice.OpenModeFlag...)">open</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#openMode()">openMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#peek(byte[])">peek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#peek(long)">peek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#pos()">pos</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#putByte(byte)">putByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#read(byte[])">read</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#read(long)">read</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readAll()">readAll</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine()">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine(byte[])">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLine(long)">readLine</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#reset()">reset</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#seek(long)">seek</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setErrorString(java.lang.String)">setErrorString</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenMode)">setOpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setOpenMode(com.trolltech.qt.core.QIODevice.OpenModeFlag...)">setOpenMode</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#setTextModeEnabled(boolean)">setTextModeEnabled</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#size()">size</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#ungetByte(byte)">ungetByte</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#write(byte[])">write</A>, <A HREF="../../../../com/trolltech/qt/core/QIODevice.html#write(com.trolltech.qt.core.QByteArray)">write</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.core.QObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.core.<A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/core/QObject.html#blockSignals(boolean)">blockSignals</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#childEvent(com.trolltech.qt.core.QChildEvent)">childEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#children()">children</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#connectSlotsByName()">connectSlotsByName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#customEvent(com.trolltech.qt.core.QEvent)">customEvent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#disposeLater()">disposeLater</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectInfo()">dumpObjectInfo</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dumpObjectTree()">dumpObjectTree</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#dynamicPropertyNames()">dynamicPropertyNames</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#event(com.trolltech.qt.core.QEvent)">event</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#eventFilter(com.trolltech.qt.core.QObject, com.trolltech.qt.core.QEvent)">eventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild()">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChild(java.lang.Class, java.lang.String)">findChild</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren()">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, com.trolltech.qt.core.QRegExp)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#findChildren(java.lang.Class, java.lang.String)">findChildren</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#installEventFilter(com.trolltech.qt.core.QObject)">installEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#isWidgetType()">isWidgetType</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#killTimer(int)">killTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#moveToThread(java.lang.Thread)">moveToThread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#objectName()">objectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#parent()">parent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#property(java.lang.String)">property</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#removeEventFilter(com.trolltech.qt.core.QObject)">removeEventFilter</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setObjectName(java.lang.String)">setObjectName</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setParent(com.trolltech.qt.core.QObject)">setParent</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#signalsBlocked()">signalsBlocked</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#startTimer(int)">startTimer</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#thread()">thread</A>, <A HREF="../../../../com/trolltech/qt/core/QObject.html#timerEvent(com.trolltech.qt.core.QTimerEvent)">timerEvent</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiObject"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiObject.html" title="class in com.trolltech.qt">QtJambiObject</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiObject.html#dispose()">dispose</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#disposed()">disposed</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#finalize()">finalize</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#reassignNativeResources(com.trolltech.qt.QtJambiObject, java.lang.Class)">reassignNativeResources</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String)">tr</A>, <A HREF="../../../../com/trolltech/qt/QtJambiObject.html#tr(java.lang.String, java.lang.String, int)">tr</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QSignalEmitter"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QSignalEmitter.html" title="class in com.trolltech.qt">QSignalEmitter</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect()">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#disconnect(java.lang.Object)">disconnect</A>, <A HREF="../../../../com/trolltech/qt/QSignalEmitter.html#signalSender()">signalSender</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="connected"><!-- --></A><H3>
connected</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>connected</B></PRE>
<DL>
<DD><p>This signal is emitted after connectToHost() has been called and a connection has been successfully established.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><tt>connectToHost</tt>, <a href="QAbstractSocket.html#disconnected()"><tt>disconnected</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="disconnected"><!-- --></A><H3>
disconnected</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>disconnected</B></PRE>
<DL>
<DD><p>This signal is emitted when the socket has been disconnected.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><tt>connectToHost</tt>, <a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>, <a href="QAbstractSocket.html#abort()"><tt>abort</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="error"><!-- --></A><H3>
error</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A>&gt; <B>error</B></PRE>
<DL>
<DD><p>This signal is emitted after an error occurred. The <tt>arg__1</tt> parameter describes the type of error that occurred.</p>
<p>QAbstractSocket::SocketError is not a registered metatype, so for queued connections, you will have to register it with Q_REGISTER_METATYPE.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.network.QAbstractSocket.SocketError arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QAbstractSocket.html#error()"><tt>error</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#errorString()"><tt>errorString</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="hostFound"><!-- --></A><H3>
hostFound</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal0.html" title="class in com.trolltech.qt">QSignalEmitter.Signal0</A> <B>hostFound</B></PRE>
<DL>
<DD><p>This signal is emitted after connectToHost() has been called and the host lookup has succeeded.</p>
<dl>
<dt><b>Compatible Slot Signature:</b></dt>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QAbstractSocket.html#connected()"><tt>connected</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="stateChanged"><!-- --></A><H3>
stateChanged</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal1.html" title="class in com.trolltech.qt">QSignalEmitter.Signal1</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&gt; <B>stateChanged</B></PRE>
<DL>
<DD><p>This signal is emitted whenever <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s state changes. The <tt>arg__1</tt> parameter is the new state.</p>
<p>QAbstractSocket::SocketState is not a registered metatype, so for queued connections, you will have to register it with Q_REGISTER_METATYPE.</p>
<dl>
<dt><b>Compatible Slot Signatures:</b></dt>
<dd><tt>void mySlot(com.trolltech.qt.network.QAbstractSocket.SocketState arg__1)</tt></dd>
<dd><tt>void mySlot()</tt></dd>
</dl>
<dl>
<dt><b>See Also:</b></dt>
<dd><a href="QAbstractSocket.html#state()"><tt>state</tt></a></dd>
</dl>
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="proxyAuthenticationRequired"><!-- --></A><H3>
proxyAuthenticationRequired</H3>
<PRE>
public <A HREF="../../../../com/trolltech/qt/QSignalEmitter.Signal2.html" title="class in com.trolltech.qt">QSignalEmitter.Signal2</A>&lt;<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>,<A HREF="../../../../com/trolltech/qt/network/QAuthenticator.html" title="class in com.trolltech.qt.network">QAuthenticator</A>&gt; <B>proxyAuthenticationRequired</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><!-- --></A><H3>
QAbstractSocket</H3>
<PRE>
public <B>QAbstractSocket</B>(<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketType.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketType</A>&nbsp;socketType,
                       <A HREF="../../../../com/trolltech/qt/core/QObject.html" title="class in com.trolltech.qt.core">QObject</A>&nbsp;parent)</PRE>
<DL>
<DD><p>Creates a new abstract socket of type <tt>socketType</tt>. The <tt>parent</tt> argument is passed to <a href="%2E%2E/core/%2E%2E/core/QObject.html#QObject(com.trolltech.qt.core.QObject)"><tt>QObject</tt></a>'s constructor.</p>
<P>
<DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#socketType()"><tt>socketType</tt></a>, 
<a href="QTcpSocket.html"><tt>QTcpSocket</tt></a>, 
<a href="QUdpSocket.html"><tt>QUdpSocket</tt></a></DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="abort()"><!-- --></A><H3>
abort</H3>
<PRE>
public final void <B>abort</B>()</PRE>
<DL>
<DD><p>Aborts the current connection and resets the socket. Unlike <a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>, this function immediately closes the socket, clearing any pending data in the write buffer.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>, 
<a href="QAbstractSocket.html#close()"><tt>close</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="disconnectFromHost()"><!-- --></A><H3>
disconnectFromHost</H3>
<PRE>
public final void <B>disconnectFromHost</B>()</PRE>
<DL>
<DD><p>Attempts to close the socket. If there is pending data waiting to be written, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> will enter <a href="QAbstractSocket.html#SocketState-enum"><tt>ClosingState</tt></a> and wait until all data has been written. Eventually, it will enter <a href="QAbstractSocket.html#SocketState-enum"><tt>UnconnectedState</tt></a> and emit the <a href="QAbstractSocket.html#disconnected()"><tt>disconnected</tt></a> signal.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>connectToHost</tt></DL>
</DD>
</DL>
<HR>

<A NAME="disconnectFromHostImplementation()"><!-- --></A><H3>
disconnectFromHostImplementation</H3>
<PRE>
protected final void <B>disconnectFromHostImplementation</B>()</PRE>
<DL>
<DD><p>Contains the implementation of <a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>.</p>
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="error()"><!-- --></A><H3>
error</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A> <B>error</B>()</PRE>
<DL>
<DD><p>Returns the type of error that last occurred.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#state()"><tt>state</tt></a>, 
<a href="%2E%2E/core/%2E%2E/core/QIODevice.html#errorString()"><tt>errorString</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
public final boolean <B>flush</B>()</PRE>
<DL>
<DD><p>This function writes as much as possible from the internal write buffer to the underlying network socket, without blocking. If any data was written, this function returns true; otherwise false is returned.</p>
<p>Call this function if you need <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> to start sending buffered data immediately. The number of bytes successfully written depends on the operating system. In most cases, you do not need to call this function, because <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> will start sending data automatically once control goes back to the event loop. In the absence of an event loop, call <a href="QAbstractSocket.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a> instead.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/core/%2E%2E/core/QIODevice.html#write(com.trolltech.qt.core.QByteArray)"><tt>write</tt></a>, 
<a href="QAbstractSocket.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isValid()"><!-- --></A><H3>
isValid</H3>
<PRE>
public final boolean <B>isValid</B>()</PRE>
<DL>
<DD><p>Returns true if the socket is valid and ready for use; otherwise returns false.</p>
<p><b>Note:</b> The socket's state must be <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectedState</tt></a> before reading and writing can occur.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#state()"><tt>state</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="localAddress()"><!-- --></A><H3>
localAddress</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A> <B>localAddress</B>()</PRE>
<DL>
<DD><p>Returns the host address of the local socket if available; otherwise returns QHostAddress::Null.</p>
<p>This is normally the main IP address of the host, but can be QHostAddress::LocalHost (127.0&#x2e;0&#x2e;1) for connections to the local host.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>localPort</tt>, 
<a href="QAbstractSocket.html#peerAddress()"><tt>peerAddress</tt></a>, 
<a href="QAbstractSocket.html#setLocalAddress(com.trolltech.qt.network.QHostAddress)"><tt>setLocalAddress</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="peerAddress()"><!-- --></A><H3>
peerAddress</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A> <B>peerAddress</B>()</PRE>
<DL>
<DD><p>Returns the address of the connected peer if the socket is in <a href="QAbstractSocket.html#SocketState-enum"><tt>ConnectedState</tt></a>; otherwise returns QHostAddress::Null.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#peerName()"><tt>peerName</tt></a>, 
<tt>peerPort</tt>, 
<a href="QAbstractSocket.html#localAddress()"><tt>localAddress</tt></a>, 
<a href="QAbstractSocket.html#setPeerAddress(com.trolltech.qt.network.QHostAddress)"><tt>setPeerAddress</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="peerName()"><!-- --></A><H3>
peerName</H3>
<PRE>
public final java.lang.String <B>peerName</B>()</PRE>
<DL>
<DD><p>Returns the name of the peer as specified by connectToHost(), or an empty <a href="%2E%2E/porting4.html#qstring"><tt>QString</tt></a> if connectToHost() has not been called.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#peerAddress()"><tt>peerAddress</tt></a>, 
<tt>peerPort</tt>, 
<a href="QAbstractSocket.html#setPeerName(java.lang.String)"><tt>setPeerName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="proxy()"><!-- --></A><H3>
proxy</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A> <B>proxy</B>()</PRE>
<DL>
<DD><p>Returns the network proxy for this socket. By default QNetworkProxy::DefaultProxy is used.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#setProxy(com.trolltech.qt.network.QNetworkProxy)"><tt>setProxy</tt></a>, 
<a href="QNetworkProxy.html"><tt>QNetworkProxy</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readBufferSize()"><!-- --></A><H3>
readBufferSize</H3>
<PRE>
public final long <B>readBufferSize</B>()</PRE>
<DL>
<DD><p>Returns the size of the internal read buffer. This limits the amount of data that the client can receive before you call <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#read(long)"><tt>read</tt></a> or <a href="%2E%2E/core/%2E%2E/core/QIODevice.html#readAll()"><tt>readAll</tt></a>.</p>
<p>A read buffer size of 0 (the default) means that the buffer has no size limit, ensuring that no data is lost.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#setReadBufferSize(long)"><tt>setReadBufferSize</tt></a>, 
<a href="%2E%2E/core/%2E%2E/core/QIODevice.html#read(long)"><tt>read</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setLocalAddress(com.trolltech.qt.network.QHostAddress)"><!-- --></A><H3>
setLocalAddress</H3>
<PRE>
protected final void <B>setLocalAddress</B>(<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A>&nbsp;address)</PRE>
<DL>
<DD><p>Sets the address on the local side of a connection to <tt>address</tt>.</p>
<p>You can call this function in a subclass of <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> to change the return value of the <a href="QAbstractSocket.html#localAddress()"><tt>localAddress</tt></a> function after a connection has been established. This feature is commonly used by proxy connections for virtual connection settings.</p>
<p>Note that this function does not bind the local address of the socket prior to a connection (e.g&#x2e;, QUdpSocket::bind()).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#localAddress()"><tt>localAddress</tt></a>, 
<tt>setLocalPort</tt>, 
<a href="QAbstractSocket.html#setPeerAddress(com.trolltech.qt.network.QHostAddress)"><tt>setPeerAddress</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPeerAddress(com.trolltech.qt.network.QHostAddress)"><!-- --></A><H3>
setPeerAddress</H3>
<PRE>
protected final void <B>setPeerAddress</B>(<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A>&nbsp;address)</PRE>
<DL>
<DD><p>Sets the address of the remote side of the connection to <tt>address</tt>.</p>
<p>You can call this function in a subclass of <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> to change the return value of the <a href="QAbstractSocket.html#peerAddress()"><tt>peerAddress</tt></a> function after a connection has been established. This feature is commonly used by proxy connections for virtual connection settings.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#peerAddress()"><tt>peerAddress</tt></a>, 
<tt>setPeerPort</tt>, 
<a href="QAbstractSocket.html#setLocalAddress(com.trolltech.qt.network.QHostAddress)"><tt>setLocalAddress</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setPeerName(java.lang.String)"><!-- --></A><H3>
setPeerName</H3>
<PRE>
protected final void <B>setPeerName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><p>Sets the host name of the remote peer to <tt>name</tt>.</p>
<p>You can call this function in a subclass of <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> to change the return value of the <a href="QAbstractSocket.html#peerName()"><tt>peerName</tt></a> function after a connection has been established. This feature is commonly used by proxy connections for virtual connection settings.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#peerName()"><tt>peerName</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setProxy(com.trolltech.qt.network.QNetworkProxy)"><!-- --></A><H3>
setProxy</H3>
<PRE>
public final void <B>setProxy</B>(<A HREF="../../../../com/trolltech/qt/network/QNetworkProxy.html" title="class in com.trolltech.qt.network">QNetworkProxy</A>&nbsp;networkProxy)</PRE>
<DL>
<DD><p>Sets the explicit network proxy for this socket to <tt>networkProxy</tt>.</p>
<p>To disable the use of a proxy for this socket, use the QNetworkProxy::NoProxy proxy type:</p>
<pre>    socket-&gt;setProxy(QNetworkProxy::NoProxy);</pre>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#proxy()"><tt>proxy</tt></a>, 
<a href="QNetworkProxy.html"><tt>QNetworkProxy</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setReadBufferSize(long)"><!-- --></A><H3>
setReadBufferSize</H3>
<PRE>
public final void <B>setReadBufferSize</B>(long&nbsp;size)</PRE>
<DL>
<DD><p>Sets the size of <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s internal read buffer to be <tt>size</tt> bytes.</p>
<p>If the buffer size is limited to a certain size, <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> won't buffer more than this size of data. Exceptionally, a buffer size of 0 means that the read buffer is unlimited and all incoming data is buffered. This is the default.</p>
<p>This option is useful if you only read the data at certain points in time (e.g&#x2e;, in a real-time streaming application) or if you want to protect your socket against receiving too much data, which may eventually cause your application to run out of memory.</p>
<p>Only <a href="QTcpSocket.html"><tt>QTcpSocket</tt></a> uses <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a>'s internal buffer; <a href="QUdpSocket.html"><tt>QUdpSocket</tt></a> does not use any buffering at all, but rather relies on the implicit buffering provided by the operating system. Because of this, calling this function on <a href="QUdpSocket.html"><tt>QUdpSocket</tt></a> has no effect.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#readBufferSize()"><tt>readBufferSize</tt></a>, 
<a href="%2E%2E/core/%2E%2E/core/QIODevice.html#read(long)"><tt>read</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenModeFlag...)"><!-- --></A><H3>
setSocketDescriptor</H3>
<PRE>
public final boolean <B>setSocketDescriptor</B>(int&nbsp;socketDescriptor,
                                         <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state,
                                         <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenModeFlag.html" title="enum in com.trolltech.qt.core">QIODevice.OpenModeFlag</A>...&nbsp;openMode)</PRE>
<DL>
<DD><p>Initializes <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> with the native socket descriptor <tt>socketDescriptor</tt>. Returns true if <tt>socketDescriptor</tt> is accepted as a valid socket descriptor; otherwise returns false. The socket is opened in the mode specified by <tt>openMode</tt>, and enters the socket state specified by <tt>state</tt>.</p>
<p><b>Note:</b> It is not possible to initialize two abstract sockets with the same native socket descriptor.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#socketDescriptor()"><tt>socketDescriptor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState)"><!-- --></A><H3>
setSocketDescriptor</H3>
<PRE>
public final boolean <B>setSocketDescriptor</B>(int&nbsp;socketDescriptor,
                                         <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state)</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setSocketDescriptor</tt></a>(<tt>socketDescriptor</tt>, <tt>state</tt>, ReadWrite).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setSocketDescriptor(int)"><!-- --></A><H3>
setSocketDescriptor</H3>
<PRE>
public final boolean <B>setSocketDescriptor</B>(int&nbsp;socketDescriptor)</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setSocketDescriptor</tt></a>(<tt>socketDescriptor</tt>, ConnectedState, ReadWrite).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
setSocketDescriptor</H3>
<PRE>
public final boolean <B>setSocketDescriptor</B>(int&nbsp;socketDescriptor,
                                         <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state,
                                         <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;openMode)</PRE>
<DL>
<DD><p>Initializes <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> with the native socket descriptor <tt>socketDescriptor</tt>. Returns true if <tt>socketDescriptor</tt> is accepted as a valid socket descriptor; otherwise returns false. The socket is opened in the mode specified by <tt>openMode</tt>, and enters the socket state specified by <tt>state</tt>.</p>
<p><b>Note:</b> It is not possible to initialize two abstract sockets with the same native socket descriptor.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#socketDescriptor()"><tt>socketDescriptor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setSocketError(com.trolltech.qt.network.QAbstractSocket.SocketError)"><!-- --></A><H3>
setSocketError</H3>
<PRE>
protected final void <B>setSocketError</B>(<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketError.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketError</A>&nbsp;socketError)</PRE>
<DL>
<DD><p>Sets the type of error that last occurred to <tt>socketError</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#setSocketState(com.trolltech.qt.network.QAbstractSocket.SocketState)"><tt>setSocketState</tt></a>, 
<a href="%2E%2E/core/%2E%2E/core/QIODevice.html#setErrorString(java.lang.String)"><tt>setErrorString</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="setSocketState(com.trolltech.qt.network.QAbstractSocket.SocketState)"><!-- --></A><H3>
setSocketState</H3>
<PRE>
protected final void <B>setSocketState</B>(<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A>&nbsp;state)</PRE>
<DL>
<DD><p>Sets the state of the socket to <tt>state</tt>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#state()"><tt>state</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="socketDescriptor()"><!-- --></A><H3>
socketDescriptor</H3>
<PRE>
public final int <B>socketDescriptor</B>()</PRE>
<DL>
<DD><p>Returns the native socket descriptor of the <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> object if this is available; otherwise returns -1.</p>
<p>If the socket is using <a href="QNetworkProxy.html"><tt>QNetworkProxy</tt></a>, the returned descriptor may not be usable with native socket functions.</p>
<p>The socket descriptor is not available when <a href="QAbstractSocket.html#QAbstractSocket(com.trolltech.qt.network.QAbstractSocket.SocketType, com.trolltech.qt.core.QObject)"><tt>QAbstractSocket</tt></a> is in <a href="QAbstractSocket.html#SocketState-enum"><tt>UnconnectedState</tt></a>.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#setSocketDescriptor(int, com.trolltech.qt.network.QAbstractSocket.SocketState, com.trolltech.qt.core.QIODevice.OpenMode)"><tt>setSocketDescriptor</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="socketType()"><!-- --></A><H3>
socketType</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketType.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketType</A> <B>socketType</B>()</PRE>
<DL>
<DD><p>Returns the socket type (TCP, UDP, or other).</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QTcpSocket.html"><tt>QTcpSocket</tt></a>, 
<a href="QUdpSocket.html"><tt>QUdpSocket</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="state()"><!-- --></A><H3>
state</H3>
<PRE>
public final <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.SocketState.html" title="enum in com.trolltech.qt.network">QAbstractSocket.SocketState</A> <B>state</B>()</PRE>
<DL>
<DD><p>Returns the state of the socket.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#error()"><tt>error</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="waitForConnected()"><!-- --></A><H3>
waitForConnected</H3>
<PRE>
public final boolean <B>waitForConnected</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#waitForConnected(int)"><tt>waitForConnected</tt></a>(30000).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="waitForConnected(int)"><!-- --></A><H3>
waitForConnected</H3>
<PRE>
public final boolean <B>waitForConnected</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>Waits until the socket is connected, up to <tt>msecs</tt> milliseconds. If the connection has been established, this function returns true; otherwise it returns false. In the case where it returns false, you can call <a href="QAbstractSocket.html#error()"><tt>error</tt></a> to determine the cause of the error.</p>
<p>The following example waits up to one second for a connection to be established:</p>
<pre>    socket-&gt;connectToHost(&quot;imap&quot;, 143);
    if (socket-&gt;waitForConnected(1000))
        qDebug(&quot;Connected!&quot;);</pre>
<p>If msecs is -1, this function will not time out.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><tt>connectToHost</tt>, 
<a href="QAbstractSocket.html#connected()"><tt>connected</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="waitForDisconnected()"><!-- --></A><H3>
waitForDisconnected</H3>
<PRE>
public final boolean <B>waitForDisconnected</B>()</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#waitForDisconnected(int)"><tt>waitForDisconnected</tt></a>(30000).
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="waitForDisconnected(int)"><!-- --></A><H3>
waitForDisconnected</H3>
<PRE>
public final boolean <B>waitForDisconnected</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>Waits until the socket has disconnected, up to <tt>msecs</tt> milliseconds. If the connection has been disconnected, this function returns true; otherwise it returns false. In the case where it returns false, you can call <a href="QAbstractSocket.html#error()"><tt>error</tt></a> to determine the cause of the error.</p>
<p>The following example waits up to one second for a connection to be closed:</p>
<pre>    socket-&gt;disconnectFromHost();
    if (socket-&gt;waitForDisconnected(1000))
        qDebug(&quot;Disconnected!&quot;);</pre>
<p>If msecs is -1, this function will not time out.</p>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#disconnectFromHost()"><tt>disconnectFromHost</tt></a>, 
<a href="QAbstractSocket.html#close()"><tt>close</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="atEnd()"><!-- --></A><H3>
atEnd</H3>
<PRE>
public boolean <B>atEnd</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#atEnd()">atEnd</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#bytesAvailable()"><tt>bytesAvailable</tt></a>, 
<a href="QAbstractSocket.html#readyRead()"><tt>readyRead</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bytesAvailable()"><!-- --></A><H3>
bytesAvailable</H3>
<PRE>
public long <B>bytesAvailable</B>()</PRE>
<DL>
<DD><p>Returns the number of incoming bytes that are waiting to be read.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesAvailable()">bytesAvailable</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#bytesToWrite()"><tt>bytesToWrite</tt></a>, 
<a href="%2E%2E/core/%2E%2E/core/QIODevice.html#read(long)"><tt>read</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="bytesToWrite()"><!-- --></A><H3>
bytesToWrite</H3>
<PRE>
public long <B>bytesToWrite</B>()</PRE>
<DL>
<DD><p>Returns the number of bytes that are waiting to be written. The bytes are written when control goes back to the event loop or when <a href="QAbstractSocket.html#flush()"><tt>flush</tt></a> is called.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#bytesToWrite()">bytesToWrite</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#bytesAvailable()"><tt>bytesAvailable</tt></a>, 
<a href="QAbstractSocket.html#flush()"><tt>flush</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="canReadLine()"><!-- --></A><H3>
canReadLine</H3>
<PRE>
public boolean <B>canReadLine</B>()</PRE>
<DL>
<DD><p>Returns true if a line of data can be read from the socket; otherwise returns false.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#canReadLine()">canReadLine</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="%2E%2E/core/%2E%2E/core/QIODevice.html#readLine(long)"><tt>readLine</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()</PRE>
<DL>
<DD><p>Disconnects the socket's connection with the host.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#close()">close</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#abort()"><tt>abort</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="isSequential()"><!-- --></A><H3>
isSequential</H3>
<PRE>
public boolean <B>isSequential</B>()</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#isSequential()">isSequential</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#bytesAvailable()"><tt>bytesAvailable</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="readData(byte[])"><!-- --></A><H3>
readData</H3>
<PRE>
protected int <B>readData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#readData(byte[])"><tt>readData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readData(byte[])">readData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="readLineData(byte[])"><!-- --></A><H3>
readLineData</H3>
<PRE>
protected int <B>readLineData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#readLineData(byte[])"><tt>readLineData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#readLineData(byte[])">readLineData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="waitForBytesWritten(int)"><!-- --></A><H3>
waitForBytesWritten</H3>
<PRE>
public boolean <B>waitForBytesWritten</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>This function is reimplemented for internal reasons.</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#waitForBytesWritten(int)">waitForBytesWritten</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QIODevice.html#waitForReadyRead(int)"><tt>waitForReadyRead</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="waitForReadyRead(int)"><!-- --></A><H3>
waitForReadyRead</H3>
<PRE>
public boolean <B>waitForReadyRead</B>(int&nbsp;msecs)</PRE>
<DL>
<DD><p>This function blocks until data is available for reading and the readyRead() signal has been emitted. The function will timeout after <tt>msecs</tt> milliseconds; the default timeout is 3000 milliseconds.</p>
<p>The function returns true if data is available for reading; otherwise it returns false (if an error occurred or the operation timed out).</p>
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#waitForReadyRead(int)">waitForReadyRead</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QAbstractSocket.html#waitForBytesWritten(int)"><tt>waitForBytesWritten</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="writeData(byte[])"><!-- --></A><H3>
writeData</H3>
<PRE>
protected int <B>writeData</B>(byte[]&nbsp;data)</PRE>
<DL>
<DD><p>Equivalent to <a href="QAbstractSocket.html#writeData(byte[])"><tt>writeData</tt></a>(<tt>data</tt>, ).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html#writeData(byte[])">writeData</A></CODE> in class <CODE><A HREF="../../../../com/trolltech/qt/core/QIODevice.html" title="class in com.trolltech.qt.core">QIODevice</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="fromNativePointer(com.trolltech.qt.QNativePointer)"><!-- --></A><H3>
fromNativePointer</H3>
<PRE>
public static <A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.html" title="class in com.trolltech.qt.network">QAbstractSocket</A> <B>fromNativePointer</B>(<A HREF="../../../../com/trolltech/qt/QNativePointer.html" title="class in com.trolltech.qt">QNativePointer</A>&nbsp;nativePointer)</PRE>
<DL>
<DD>This function returns the QAbstractSocket instance pointed to by nativePointer
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nativePointer</CODE> - the QNativePointer of which object should be returned.</DL>
</DD>
</DL>
<HR>

<A NAME="connectToHost(java.lang.String, int, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
connectToHost</H3>
<PRE>
public final void <B>connectToHost</B>(java.lang.String&nbsp;host,
                                int&nbsp;port,
                                <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD>Attempts to make a connection to <tt>host</tt> on the given <tt>port</tt>.
<p>
The socket is opened in the given <tt>mode</tt> and first enters
HostLookupState, then performs a host name lookup of <tt>host</tt>.
If the lookup succeeds, hostFound() is emitted and QAbstractSocket
enters ConnectingState. It then attempts to connect to the address
or addresses returned by the lookup. Finally, if a connection is
established, QAbstractSocket enters ConnectedState and
emits connected().
<p>
At any point, the socket can emit error() to signal that an error
occurred.
<p>
<tt>host</tt> may be an IP address in string form (e.g.,
"43.195.83.32"), or it may be a host name (e.g.,
"www.trolltech.com"). QAbstractSocket will do a lookup only if
required. <tt>port</tt> is in native byte order.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="connectToHost(com.trolltech.qt.network.QHostAddress, int, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
connectToHost</H3>
<PRE>
public final void <B>connectToHost</B>(<A HREF="../../../../com/trolltech/qt/network/QHostAddress.html" title="class in com.trolltech.qt.network">QHostAddress</A>&nbsp;host,
                                int&nbsp;port,
                                <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD>Attempts to make a connection to <tt>address</tt> on port <tt>port</tt> with open mode
<tt>mode</tt>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="connectToHostImplementation(java.lang.String, int, com.trolltech.qt.core.QIODevice.OpenMode)"><!-- --></A><H3>
connectToHostImplementation</H3>
<PRE>
protected final void <B>connectToHostImplementation</B>(java.lang.String&nbsp;host,
                                                 int&nbsp;port,
                                                 <A HREF="../../../../com/trolltech/qt/core/QIODevice.OpenMode.html" title="class in com.trolltech.qt.core">QIODevice.OpenMode</A>&nbsp;mode)</PRE>
<DL>
<DD>Contains the implementation of connectToHost().
<p>
Attempts to make a connection to <tt>host</tt> on the given
<tt>port</tt>. The socket is opened in the given <tt>mode</tt>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="localPort()"><!-- --></A><H3>
localPort</H3>
<PRE>
public final int <B>localPort</B>()</PRE>
<DL>
<DD>Returns the host port number (in native byte order) of the local
socket if available; otherwise returns 0.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="peerPort()"><!-- --></A><H3>
peerPort</H3>
<PRE>
public final int <B>peerPort</B>()</PRE>
<DL>
<DD>Returns the port of the connected peer if the socket is in
ConnectedState; otherwise returns 0.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setLocalPort(int)"><!-- --></A><H3>
setLocalPort</H3>
<PRE>
protected final void <B>setLocalPort</B>(int&nbsp;port)</PRE>
<DL>
<DD>Sets the local port of this QAbstractSocket to <tt>port</tt>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setPeerPort(int)"><!-- --></A><H3>
setPeerPort</H3>
<PRE>
protected final void <B>setPeerPort</B>(int&nbsp;port)</PRE>
<DL>
<DD>Sets the peer port of this QAbstractSocket to <tt>port</tt>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/network/QAbstractSocket.NetworkLayerProtocol.html" title="enum in com.trolltech.qt.network"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/network/QAbstractSocket.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QAbstractSocket.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>