Get the client username and IP address (this howto is deprecated)Tag(s): DEPRECATED


[local function declaration]
FUNCTION long JagGetUserName &
  (ref string uname, long unamelength, ref long returnlenght) &
   LIBRARY "libjdispatch.dll"
FUNCTION long JagGetPeerAddress &
  (ref string ip, long iplength, ref long returnlenght) &
  LIBRARY "libjdispatch.dll"

[powerscript]

string ls_user, ls_ip
long  ll_temp

ls_user = space(256)
JagGetUserName(ls_user , 256, ll_temp)
ls_ip = space(256)
JagGetPeerAddress(ls_ip , 256, ll_temp)

In java
com.sybase.jaguar.server.Jaguar.getPeerAddress()

blog comments powered by Disqus