473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to empty the recv buffer without recv() ?

hi,
We have Primary / Secondary Client / Server architecture. The
server is supposed to receive data from Primary client but ignore the
Secondary Client data. I have to somehow ignore the Secondary Client's
data without wasting time on the recv() from Secondary Client.

Can anyone suggest how i go about achieving it ?

Thanks in advance,
Deepak Nayak

Oct 24 '07 #1
3 3557
On 2007-10-24 11:31, deepak nayak wrote:
hi,
We have Primary / Secondary Client / Server architecture. The
server is supposed to receive data from Primary client but ignore the
Secondary Client data. I have to somehow ignore the Secondary Client's
data without wasting time on the recv() from Secondary Client.
There is no recv() or similar in standard C++, you will have to ask your
question in a forum discussing whatever libraries you are using to send
and receive data.

--
Erik Wikström
Oct 24 '07 #2
Can u suggest any such forum or group for the same ?

Thanks,
deepak

Erik Wikström wrote:
On 2007-10-24 11:31, deepak nayak wrote:
hi,
We have Primary / Secondary Client / Server architecture. The
server is supposed to receive data from Primary client but ignore the
Secondary Client data. I have to somehow ignore the Secondary Client's
data without wasting time on the recv() from Secondary Client.

There is no recv() or similar in standard C++, you will have to ask your
question in a forum discussing whatever libraries you are using to send
and receive data.

--
Erik Wikström
Oct 25 '07 #3
On 2007-10-25 10:00, deepak nayak wrote:
Erik Wikström wrote:
>On 2007-10-24 11:31, deepak nayak wrote:
hi,
We have Primary / Secondary Client / Server architecture. The
server is supposed to receive data from Primary client but ignore the
Secondary Client data. I have to somehow ignore the Secondary Client's
data without wasting time on the recv() from Secondary Client.

There is no recv() or similar in standard C++, you will have to ask your
question in a forum discussing whatever libraries you are using to send
and receive data.
Please do not top-post, and do not quote signatures.
Can u suggest any such forum or group for the same ?
Sorry, but no. I do not even know what library or platform you are
using. If you are doing Windows programming then a win32 group might
help, if you are under Unix/Linux then a unix programming groups might help.

--
Erik Wikström
Oct 25 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
5
by: daniel.shaya | last post by:
I'll try and keep this brief so in a nutshell: I have large distributed java system running on a Windows 2003 server (4cpu 8Gb memory). Periodically the following exceptions occurs in the...
9
by: Robert | last post by:
Hi, Is it me or is the recv() function not erasing but only overwriting the last data it supplied? example: when i first send: "login robert test"
6
by: Tom | last post by:
I try to write a simple tcp based job queue server. It's purpose is to get commands from a client and store them in a queue (STL). The server has a thread which checks periodically the queue,...
1
by: BilMuh | last post by:
Hello Developpers, I am developping a TCP/IP Client application using Visual C++ .NET Standard on Windows 2000 Pro. I noticed that I could not receive more than 2KB once at a time. The server...
1
by: xreload | last post by:
Hello ! I have some class for getting html documents : """ Wrapper for Python sockets lib """ import socket import urlparse import random
4
by: Aditya | last post by:
Hi I am using recv() from socket.h in one of my TCP-client projects. The problem is that the buffer variable in recv(socketDescriptor, buffer, flags) points to some stray location and when the...
4
by: Aditya | last post by:
Hi I am using recv() from socket.h in one of my TCP-client projects. The problem is that the buffer variable in recv(socketDescriptor, buffer, flags) points to some stray location and when the...
3
by: Giampaolo Rodola' | last post by:
Hi, I'd like to know if there's a way to determine which is the best buffer size to use when you have to send() and recv() some data over the network. I have an FTP server application which, on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.