Nofew

Untitled

Dec 17th, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. socket_setuser( (SOCKET) d s -- i )
  2. -----------------------------------
  3. Level: W3 ArchWizard
  4. (SOCKET) = MUF Socket
  5. d = dbref of player to connect the socket to.
  6. s = string containing that player's password.
  7. i = Indicates failure or not.
  8.  
  9. Given a MUF socket, a valid player dbref, and that player's password,
  10. will establish a normal telnet connection to that character using the
  11. MUF socket's descriptor.
  12.  
  13. As far as the user can tell, the connection will seem like a standard
  14. telnet connection to the MUCK from thereon out. Note that the SOCKET
  15. can't be a listening socket. Normally it -should- be a socket made
  16. from SOCKACCEPT, but in theory, sockets made by NBSOCKOPEN can be
  17. used in the same way, though the behavior isn't certain. Note that
  18. the username and host address of the player is only valid if
  19. using this with sockets made from SOCKACCEPT.
  20.  
  21. As a final note: Once a MUF socket is connected to a player, it should
  22. no longer be used as a MUF socket.
  23.  
  24. See: SOCKET PRIMS
Advertisement
Add Comment
Please, Sign In to add comment