LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 02-16-2011, 05:42 AM   #1
vbx_wx
Member
 
Registered: Feb 2010
Posts: 181

Rep: Reputation: 16
Test if client or server has data to send C++


If you have a proxy and receive/send data from/to both the client and the server,is there a way to test what part has data to send(client or server) ?
 
Old 02-16-2011, 07:19 AM   #2
ForzaItalia2006
Member
 
Registered: Dec 2009
Location: Walldorf, Germany
Distribution: (X)Ubuntu, Arch, Gentoo
Posts: 205

Rep: Reputation: 67
Quote:
Originally Posted by vbx_wx View Post
If you have a proxy and receive/send data from/to both the client and the server,is there a way to test what part has data to send(client or server) ?
I'm not sure if I understood your question correctly, but maybe the select(2)/poll(2) system calls help assuming that you are running on a *NIX system. These system calls allow you to check if a socket has data to read from.

Best regards,
Andi
 
  


Reply

Tags
sockets


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Send cdrom0 to SSH client/server ODECiF Linux - Networking 9 05-21-2010 07:17 AM
Linux Email client to send/recive mails from Exchange server Hussain000 Red Hat 1 01-01-2009 06:41 AM
Linux Email client to send/recive mails from Exchange server Hussain000 Linux - General 1 01-01-2009 06:39 AM
send array of string from server to client tqa Programming 2 11-20-2008 09:21 PM


All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration