Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TCPserver unable to read data from socket in windows
Forum Update on Monday, May 27th 2025

TCPserver unable to read data from socket in windows

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 556 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snehamar
    wrote on 8 Aug 2014, 06:21 last edited by
    #1

    Hi,

    I have written a code whose functionality steps are:
    1st step:- client (which is an UI) needs to get data from server which in turn needs to get data from a Database. After getting data, Client updates the UI accordingly
    2nd step: Client needs to send data to server which then updates the Database.

    What's happening is Client is getting connected to server and upon receiving the data updates the UI successfully. But after that when client is trying to send data to the server to update the database, server is not reading the data from socket. And then no data is getting exchanged between server and client. And also I tried to get the error, if there is any, using errorstring(); but its not showing any error. One more thing is that same code is working perfectly in Mac, but not on windows. What can be reason for that? Or, i don't have the admin rights on the desktop I am working. Could that be a problem? Server is running locally on my desktop, to which i am trying to connect using IP 127.0.0.1 and Port 1234.

    1 Reply Last reply
    0

    1/1

    8 Aug 2014, 06:21

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved