U++ framework
Do not panic. Ask here before giving up.

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: Sun Oct 11 23:34:29 GMT+2 2026

Total time taken to generate the page: 0.00609 seconds