Lines Matching refs:mode
159 DWORD mode, rcount = 0; in read_wincon() local
169 if(GetConsoleMode(handle, &mode)) { in read_wincon()
191 DWORD mode, wcount = 0; in write_wincon() local
204 if(GetConsoleMode(handle, &mode)) { in write_wincon()
964 enum sockmode *mode) in juggle() argument
1001 switch(*mode) { in juggle()
1125 if(*mode == PASSIVE_LISTEN) { in juggle()
1147 if(*mode == PASSIVE_CONNECT) in juggle()
1148 *mode = PASSIVE_LISTEN; in juggle()
1150 *mode = ACTIVE_DISCONNECT; in juggle()
1161 if(*mode == PASSIVE_LISTEN) { in juggle()
1175 *mode = PASSIVE_CONNECT; /* we have connected */ in juggle()
1200 if(*mode == PASSIVE_CONNECT) in juggle()
1201 *mode = PASSIVE_LISTEN; in juggle()
1203 *mode = ACTIVE_DISCONNECT; in juggle()
1366 enum sockmode mode = PASSIVE_LISTEN; /* default */ in main() local
1498 mode = ACTIVE; in main()
1567 juggle_again = juggle(&msgsock, sock, &mode); in main()