Results 1 to 7 of 7

Thread: QNativeSocketEngine

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Aug 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QNativeSocketEngine

    Qt Code:
    1. void Common::send_sock_data_1(int G_sock_data_len)
    2. {
    3. int byte_send;
    4. byte_send = tcpSocket->write(G_sock_data_1, G_sock_data_len);
    5. .
    6. .
    7. .
    To copy to clipboard, switch view to plain text mode 

    Here is my write function. I pass in an integer which represents the length of the message being sent. G_sock_data_1 is a char array. I would like to know what I am doing wrong, or if there is a better solution to write on a socket. Also I am porting code over from Windows to CentOS.
    Last edited by jpn; 5th August 2008 at 14:09. Reason: missing [code] tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.