You've already forked lazarus-ccr
ICallContext now has a property manager ( GetPropertyManager() ). At server side the so got property manager can be used to query the remote client informations such as its IP address ( RemoteIP )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@573 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -202,6 +202,8 @@ begin
|
||||
FInputStream.Write(buff[1],Length(buff));
|
||||
FInputStream.Position := 0;
|
||||
rqst := TRequestBuffer.Create(trgt,ctntyp,FInputStream,FOutputStream,frmt);
|
||||
rqst.GetPropertyManager().SetProperty(sREMOTE_IP,FSocketObject.GetRemoteSinIP());
|
||||
rqst.GetPropertyManager().SetProperty(sREMOTE_PORT,IntToStr(FSocketObject.GetRemoteSinPort()));
|
||||
HandleServiceRequest(rqst);
|
||||
i := FOutputStream.Size;
|
||||
SetLength(buff,i);
|
||||
|
||||
Reference in New Issue
Block a user