?
Solved

getpeername problem

Posted on 1998-07-29
1
Medium Priority
?
223 Views
Last Modified: 2006-11-17
Hola,
I am trying to figure out which IP address is connecting to my socket (INADDR_ANY
is currently used).
From a database I will then decide if this ip address and the corresponding user name
is allowed to connect. Is this possible in 9x/NT ??? I thought getpeername is useful but
it's not working in 95 and NT.
Thanks a lot !
Markus
0
Comment
Question by:boyracer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 300 total points
ID: 1168993
Do you mean your application is a server and want to decide the client's IP? If so, the accept() will return you the information
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question