Solved

getpeername problem

Posted on 1998-07-29
1
206 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
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now