?
Solved

Accept function

Posted on 2003-03-19
5
Medium Priority
?
170 Views
Last Modified: 2010-04-04
Well... First of all Hello !!
I am hooking the function Accept (from WinSock). I have as parameter the (Socket: Integer; sockAddr: PSockAddr; len: integer).
With this informations, how can i get the Remote IP, and the port ? If possible, more informations ...? Thank you !
0
Comment
Question by:nildo
[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
5 Comments
 
LVL 1

Expert Comment

by:SimesA
ID: 8173474
var
  sockAddr: PSockAddr;
  Port: u_short;
  Address: TInAddr;
begin
  Port := sockAddr.sin_port;
  Address := sockAddr.sin_addr;
end;
0
 
LVL 1

Author Comment

by:nildo
ID: 8175104
Didnt work. When i put IntToStr(port), it returns 68 (was to be 1234). And when i put PChar(Address) it returns nothing (was to be 192.168.1.105). Why ?
0
 

Expert Comment

by:CleanupPing
ID: 9316676
nildo:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 10652475
PAQed, with points refunded (40)

GhostMod
Community Support Moderator
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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month11 days, left to enroll

770 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