who.c

./lib/secure/udp_cmd_/who.c · 541 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

#include <master.cfg>
#include <udp.h>

int udp_who(mapping data) {
    INETD->send_udp(data[NAME], ([
     REQUEST: REPLY,
     RECIPIENT: data[SENDER],
     ID: data[ID],
	DATA: (string)PLAYER->who(),
    ]) );
	return 1;
}

string test_data() {
  return (string)PLAYER->who();
}

void who(string mud) {
  if(!MASTER->valid_player_call(previous_object())) return;
  if(INETD->send_udp(mud,
            ([ REQUEST: "who",
               SENDER:  (string)this_player()->query_name(1),
            ]), 1))
    write("Who Request Sent.\n");
}

Site Stats

Snippets: 1791
Codebases: 571