PDA

View Full Version : SOCKET to QTcpSocket



triperzonak
10th August 2009, 03:31
hi,

how can i convert this SOCKET function to QTcpSocket

int ret = send(socket_fd, buf, buf_len, 0)

int ret = recv(socket_fd,&buf[get], (buf_len - get), 0)

i did try to use read() and write() but always returning 0 value.:confused:

franz
10th August 2009, 06:37
What does the relevant code currently look like?