s = sk_new(addr, port, 1, rlogin_receive);
s = sk_new(addr, port, 1, 0, rlogin_receive);
static char *rlogin_init (char *host, int port, char **realhost) {    SockAddr addr;    char *err;    /*     * Try to find host.     */    addr = sk_namelookup(host, realhost);    if ( (err = sk_addr_error(addr)) )	return err;    if (port < 0)	port = 513;		       /* default rlogin port */    /*     * Open socket.     */    s = sk_new(addr, port, 1, rlogin_receive);    if ( (err = sk_socket_error(s)) )	return err;    sk_addr_free(addr);    /*     * Send local username, remote username, terminal/speed     */    {        char z = 0;        char *p;        sk_write(s, &z, 1);        sk_write(s, cfg.localusername, strlen(cfg.localusername));        sk_write(s, &z, 1);        sk_write(s, cfg.username, strlen(cfg.username));        sk_write(s, &z, 1);        sk_write(s, cfg.termtype, strlen(cfg.termtype));        sk_write(s, "/", 1);        for(p = cfg.termspeed; isdigit(*p); p++);        sk_write(s, cfg.termspeed, p - cfg.termspeed);        sk_write(s, &z, 1);    }    return NULL;}