c++ - How to "understand" ENVIRON option socket programming supporting automatic login -



c++ - How to "understand" ENVIRON option socket programming supporting automatic login -

i have server socket can connected users via telnet. politics of telnet aside. i'm trying back upwards -a ("automatic login") alternative on server. page http://linux.die.net/man/1/telnet says:

-a' effort automatic login. currently, sends user name via user variable of environ alternative if supported remote system. name used of current user returned getlogin(2) if agrees current user id, otherwise name associated user id.

i'm trying understand (in c++) how can "understand / back upwards environ option". refers getenv & getlogin functions. both getenv & getlogin local user. info retrieved way, specific user running programme on server. as, want login info client connected via telnet.

how can go retrieving info server side?

c++ sockets telnet

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -