Lines Matching defs:csock
76 /* Csock buffers. Communication on the csock is asynchronuous. This means
116 static int csock, dsock;
280 if ((ret = NgRecvMsg(csock, mesg, resbufsiz + 1, path)) < 0) {
288 syslog(LOG_WARNING, "read from csock: %m");
325 return (NgSendMsg(csock, path, (int)cookie, (int)opcode, arg, arglen));
349 * Execute a synchronuous dialog with the csock. All message we receive, that
386 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1)
408 if (setsockopt(csock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1)
616 return (NgSendMsg(csock, ".:",
627 return (NgSendMsg(csock, ".:",
643 return (NgSendMsg(csock, path,
663 return (NgSendMsg(csock, path,
742 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_MKPEER,
752 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_NAME,
768 return (NgSendMsg(csock, path, NGM_GENERIC_COOKIE,
781 return (NgSendMsg(csock, ".:",
796 return (NgSendMsg(csock, path,
913 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
920 if ((csock_fd = fd_select(csock, csock_input, NULL, module)) == NULL) {
921 syslog(LOG_ERR, "fd_select failed on csock: %m");
948 (void)close(csock);
1028 if (NgMkSockNode(snmp_nodename, &csock, &dsock) < 0) {
1066 close(csock);