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 #13835 is a reply to message #13830] Tue, 29 January 2008 14:43 Go to previous messageGo to previous message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
Yes, I am using this on Windows Server 2003 running in VirtualBox virtual machine (as development platform). I'm not sure if that could be the issues as I have yet to test it with 32-bit Windows running directly on hardware.

Would the virtual machine be the issue?
Can someone else please test this?

For the time being, I am using:
String FormatIPStr(dword _ip)
{
    byte ip[4];
    Poke32be(ip, _ip);
    #ifdef PLATFORM_WIN32
    return Format("%d.%d.%d.%d", ip[1], ip[0], ip[3], ip[2]);
    #else
    return Format("%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]);
    #endif	
}

[Updated on: Tue, 29 January 2008 14:48]

Report message to a moderator

 
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: Sat Jun 01 04:16:16 CEST 2024

Total time taken to generate the page: 0.01595 seconds