[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/libqt-addon/libqt-addon
From:       Thiago Macieira <thiagom () mail ! com>
Date:       2003-12-11 21:25:23
[Download RAW message or body]

CVS commit by thiago: 

Added virtual string-based members bind and connect to the base class.


  M +29 -2     qsocketbase.h   1.7


--- kdenonbeta/libqt-addon/libqt-addon/qsocketbase.h  #1.6:1.7
@@ -310,4 +310,15 @@ public:
 
   /**
+   * Binds this socket to the given address in string
+   * representation.
+   *
+   * @param node                the node to bind to
+   * @param service             the service to bind to
+   * @returns true if the binding was successful, false otherwise
+   */
+  virtual bool bind(const QString& node, const QString& service = QString::null) = 0;
+
+  /**
+   * @overload
    * Puts this socket into listening mode.
    *
@@ -338,8 +349,24 @@ public:
    *
    * @param address             the address to connect to
+   * @returns true if the connection was successful or has been successfully
+   *          queued; false if an error occurred.
    */
   virtual bool connect(const QResolverEntry& address) = 0;
 
   /**
+   * @overload
+   * Connect to a remote host.
+   *
+   * This will make this socket try to connect to the remote host,
+   * given by its nodename and service name.
+   *
+   * @param node                the node to connect to
+   * @param service             the service on that node to connect to
+   * @returns true if the connection was successful or has been successfully
+   *          queued; false if an error occurred.
+   */
+  virtual bool connect(const QString& node, const QString& service = QString::null) = 0;
+
+  /**
    * Accepts a new incoming connection.
    *


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic