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 #13830 is a reply to message #13762] Tue, 29 January 2008 14:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Are you sure about FormatIP being wrong ?

String FormatIP(dword _ip)
{
	byte ip[4];
	Poke32be(ip, _ip);
	return Format("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]);
}


I guess there is a little room for error there...

Mirek
 
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: Thu Oct 08 16:44:41 GMT+2 2026

Total time taken to generate the page: 0.06894 seconds