• Home
  • Raw
  • Download

Lines Matching refs:option

104                         int cmd, int option);
108 static void send_negotiation(struct connectdata *, int cmd, int option);
110 int option, int newstate);
112 int option, int newstate);
118 static void sendsuboption(struct connectdata *conn, int option);
311 const char *direction, int cmd, int option) in printoption()
315 if(CURL_TELCMD_OK(option)) in printoption()
316 infof(data, "%s IAC %s\n", direction, CURL_TELCMD(option)); in printoption()
318 infof(data, "%s IAC %d\n", direction, option); in printoption()
327 if(CURL_TELOPT_OK(option)) in printoption()
328 opt = CURL_TELOPT(option); in printoption()
329 else if(option == CURL_TELOPT_EXOPL) in printoption()
337 infof(data, "%s %s %d\n", direction, fmt, option); in printoption()
340 infof(data, "%s %d %d\n", direction, cmd, option); in printoption()
346 static void send_negotiation(struct connectdata *conn, int cmd, int option) in send_negotiation() argument
354 buf[2] = (unsigned char)option; in send_negotiation()
362 printoption(conn->data, "SENT", cmd, option); in send_negotiation()
366 void set_remote_option(struct connectdata *conn, int option, int newstate) in set_remote_option() argument
370 switch(tn->him[option]) { in set_remote_option()
372 tn->him[option] = CURL_WANTYES; in set_remote_option()
373 send_negotiation(conn, CURL_DO, option); in set_remote_option()
381 switch(tn->himq[option]) { in set_remote_option()
384 tn->himq[option] = CURL_OPPOSITE; in set_remote_option()
393 switch(tn->himq[option]) { in set_remote_option()
398 tn->himq[option] = CURL_EMPTY; in set_remote_option()
405 switch(tn->him[option]) { in set_remote_option()
411 tn->him[option] = CURL_WANTNO; in set_remote_option()
412 send_negotiation(conn, CURL_DONT, option); in set_remote_option()
416 switch(tn->himq[option]) { in set_remote_option()
421 tn->himq[option] = CURL_EMPTY; in set_remote_option()
427 switch(tn->himq[option]) { in set_remote_option()
429 tn->himq[option] = CURL_OPPOSITE; in set_remote_option()
440 void rec_will(struct connectdata *conn, int option) in rec_will() argument
443 switch(tn->him[option]) { in rec_will()
445 if(tn->him_preferred[option] == CURL_YES) { in rec_will()
446 tn->him[option] = CURL_YES; in rec_will()
447 send_negotiation(conn, CURL_DO, option); in rec_will()
450 send_negotiation(conn, CURL_DONT, option); in rec_will()
459 switch(tn->himq[option]) { in rec_will()
462 tn->him[option] = CURL_NO; in rec_will()
466 tn->him[option] = CURL_YES; in rec_will()
467 tn->himq[option] = CURL_EMPTY; in rec_will()
473 switch(tn->himq[option]) { in rec_will()
475 tn->him[option] = CURL_YES; in rec_will()
478 tn->him[option] = CURL_WANTNO; in rec_will()
479 tn->himq[option] = CURL_EMPTY; in rec_will()
480 send_negotiation(conn, CURL_DONT, option); in rec_will()
488 void rec_wont(struct connectdata *conn, int option) in rec_wont() argument
491 switch(tn->him[option]) { in rec_wont()
497 tn->him[option] = CURL_NO; in rec_wont()
498 send_negotiation(conn, CURL_DONT, option); in rec_wont()
502 switch(tn->himq[option]) { in rec_wont()
504 tn->him[option] = CURL_NO; in rec_wont()
508 tn->him[option] = CURL_WANTYES; in rec_wont()
509 tn->himq[option] = CURL_EMPTY; in rec_wont()
510 send_negotiation(conn, CURL_DO, option); in rec_wont()
516 switch(tn->himq[option]) { in rec_wont()
518 tn->him[option] = CURL_NO; in rec_wont()
521 tn->him[option] = CURL_NO; in rec_wont()
522 tn->himq[option] = CURL_EMPTY; in rec_wont()
530 set_local_option(struct connectdata *conn, int option, int newstate) in set_local_option() argument
534 switch(tn->us[option]) { in set_local_option()
536 tn->us[option] = CURL_WANTYES; in set_local_option()
537 send_negotiation(conn, CURL_WILL, option); in set_local_option()
545 switch(tn->usq[option]) { in set_local_option()
548 tn->usq[option] = CURL_OPPOSITE; in set_local_option()
557 switch(tn->usq[option]) { in set_local_option()
562 tn->usq[option] = CURL_EMPTY; in set_local_option()
569 switch(tn->us[option]) { in set_local_option()
575 tn->us[option] = CURL_WANTNO; in set_local_option()
576 send_negotiation(conn, CURL_WONT, option); in set_local_option()
580 switch(tn->usq[option]) { in set_local_option()
585 tn->usq[option] = CURL_EMPTY; in set_local_option()
591 switch(tn->usq[option]) { in set_local_option()
593 tn->usq[option] = CURL_OPPOSITE; in set_local_option()
604 void rec_do(struct connectdata *conn, int option) in rec_do() argument
607 switch(tn->us[option]) { in rec_do()
609 if(tn->us_preferred[option] == CURL_YES) { in rec_do()
610 tn->us[option] = CURL_YES; in rec_do()
611 send_negotiation(conn, CURL_WILL, option); in rec_do()
612 if(tn->subnegotiation[option] == CURL_YES) in rec_do()
614 sendsuboption(conn, option); in rec_do()
616 else if(tn->subnegotiation[option] == CURL_YES) { in rec_do()
618 tn->us[option] = CURL_YES; in rec_do()
619 send_negotiation(conn, CURL_WILL, option); in rec_do()
620 sendsuboption(conn, option); in rec_do()
623 send_negotiation(conn, CURL_WONT, option); in rec_do()
631 switch(tn->usq[option]) { in rec_do()
634 tn->us[option] = CURL_NO; in rec_do()
638 tn->us[option] = CURL_YES; in rec_do()
639 tn->usq[option] = CURL_EMPTY; in rec_do()
645 switch(tn->usq[option]) { in rec_do()
647 tn->us[option] = CURL_YES; in rec_do()
648 if(tn->subnegotiation[option] == CURL_YES) { in rec_do()
650 sendsuboption(conn, option); in rec_do()
654 tn->us[option] = CURL_WANTNO; in rec_do()
655 tn->himq[option] = CURL_EMPTY; in rec_do()
656 send_negotiation(conn, CURL_WONT, option); in rec_do()
664 void rec_dont(struct connectdata *conn, int option) in rec_dont() argument
667 switch(tn->us[option]) { in rec_dont()
673 tn->us[option] = CURL_NO; in rec_dont()
674 send_negotiation(conn, CURL_WONT, option); in rec_dont()
678 switch(tn->usq[option]) { in rec_dont()
680 tn->us[option] = CURL_NO; in rec_dont()
684 tn->us[option] = CURL_WANTYES; in rec_dont()
685 tn->usq[option] = CURL_EMPTY; in rec_dont()
686 send_negotiation(conn, CURL_WILL, option); in rec_dont()
692 switch(tn->usq[option]) { in rec_dont()
694 tn->us[option] = CURL_NO; in rec_dont()
697 tn->us[option] = CURL_NO; in rec_dont()
698 tn->usq[option] = CURL_EMPTY; in rec_dont()
999 static void sendsuboption(struct connectdata *conn, int option) in sendsuboption() argument
1009 switch(option) { in sendsuboption()