Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » How to obtain IP/port information out of a socket
Re: How to obtain IP/port information out of a socket [message #13725 is a reply to message #13721] Thu, 24 January 2008 17:55 Go to previous messageGo to previous message
zaurus is currently offline  zaurus
Messages: 42
Registered: May 2006
Member
Hi!

You can get the IP from the Accept method. I do it like this.

Socket m_Socket, m_Connection;
dword m_ipaddr;
String sIP;

m_Socket.Accept(m_Connection, &m_ipaddr, true, 100);
sIP = FormatIP(m_ipaddr);


Hope this helps.

Happy coding.

Zaurus
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT Documentation
Next Topic: Conditional Variables
Goto Forum:
  


Current Time: Mon Jun 09 07:08:33 CEST 2025

Total time taken to generate the page: 0.03860 seconds