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

Home » Developing U++ » UppHub » Urr
Re: client adress in server available? [message #29849 is a reply to message #29601] Mon, 22 November 2010 11:05 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
kohait00 wrote on Tue, 02 November 2010 20:57

hi mirek,

Urr is quite nice in terms of interface..
a quick feature request comes up in my case.
using UrrServer, i'd need the adress of the client, the packet came from..
is this possible for you to make available in Urr?


what about
Urr.h:83

	int SourcePort() const { sockaddr_in& srcadr = *(sockaddr_in*)&adr; return ntohs(srcadr.sin_port); }
	String SourceIp() const { sockaddr_in& srcadr = *(sockaddr_in*)&adr; return String(inet_ntoa(srcadr.sin_addr)); }



BTW: RELEASE compile warns about empty ';', this is bit ugly in clean compiles Smile
pls change to:
Urr.h:35
	if(bug == 0) { LOG("[Emulated drop]"); }

[Updated on: Mon, 22 November 2010 11:06]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "Alternative Multithreading" revisited
Next Topic: Outlook automation with MAPIEx
Goto Forum:
  


Current Time: Sat Apr 25 19:19:10 GMT+2 2026

Total time taken to generate the page: 0.00747 seconds