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

Home » U++ Library support » U++ MT-multithreading and servers » Feature request - GetPeerAddr in WebSocket
Feature request - GetPeerAddr in WebSocket [message #49982] Sun, 10 June 2018 21:24 Go to previous message
Zbych is currently offline  Zbych
Messages: 332
Registered: July 2009
Senior Member
Hi,

Can we add GetPeerAddr to WebSocket? Right now there is no function that returns client's address.
It is just single line in Inet.h:
	dword  GetWaitEvents() const  { return WAIT_READ|(!!out_queue.GetCount() * WAIT_WRITE); }
	SOCKET GetSOCKET() const      { return socket ? socket->GetSOCKET() : 0; }
	String GetPeerAddr() const    { return socket ? socket->GetPeerAddr() : ""; } //<---- NEW LINE
 
Read Message
Read Message
Read Message
Previous Topic: SCGI server
Next Topic: Thread::GetId() returning 0
Goto Forum:
  


Current Time: Sat May 02 14:06:20 GMT+2 2026

Total time taken to generate the page: 0.00435 seconds