handshake.h

lpmud/mudlib/obj/handshake.h · 308 B

From the archive lpmud-1.4.1-A-r11.tar.gz

Download the archive   « Back to the archive contents

string handshake_data;
int handshake;

set_handshake(data) {
    handshake_data = data;
    handshake = random(100000000)+100;
    return handshake;
}

get_handshake(confirm) {
    if (confirm == handshake && handshake) {
        handshake = 0;
	return handshake_data;
    } else {
        return 0;
    }
}

Site Stats

Snippets: 1791
Codebases: 571