Lines Matching defs:sotype
170 * Ugly, but only called once (for each sotype).
181 static int findMaxBuf(int fd, int opt, int sotype) {
187 if (sotype == SOCK_DGRAM) {
1389 int sotype=0, arglen;
1400 arglen = sizeof(sotype);
1401 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void *)&sotype,
1411 if (!init_tcp_max_buf && sotype == SOCK_STREAM) {
1420 } else if (!init_udp_max_buf && sotype == SOCK_DGRAM) {
1431 maxbuf = (sotype == SOCK_STREAM) ? tcp_max_buf : udp_max_buf;
1504 int sotype;
1507 arglen = sizeof(sotype);
1508 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void *)&sotype, &arglen) < 0) {
1512 if (sotype == SOCK_DGRAM) {