Lines Matching refs:errMsg

507 void ChSocket::detectErrorOpenWinSocket(int* errCode, std::string& errMsg) {  in detectErrorOpenWinSocket()  argument
511 errMsg.append("Successful WSAStartup must occur before using this function."); in detectErrorOpenWinSocket()
513 errMsg.append("The network subsystem or the associated service provider has failed."); in detectErrorOpenWinSocket()
515 errMsg.append("The specified address family is not supported."); in detectErrorOpenWinSocket()
517 errMsg.append( in detectErrorOpenWinSocket()
521 errMsg.append("No more socket descriptors are available."); in detectErrorOpenWinSocket()
523 errMsg.append("No buffer space is available. The socket cannot be created."); in detectErrorOpenWinSocket()
525 errMsg.append("The specified protocol is not supported."); in detectErrorOpenWinSocket()
527 errMsg.append("The specified protocol is the wrong type for this socket."); in detectErrorOpenWinSocket()
529 errMsg.append("The specified socket type is not supported in this address family."); in detectErrorOpenWinSocket()
531 errMsg.append("unknown problems!"); in detectErrorOpenWinSocket()
534 void ChSocket::detectErrorSetSocketOption(int* errCode, std::string& errMsg) { in detectErrorSetSocketOption() argument
538 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorSetSocketOption()
540 errMsg.append("The network subsystem has failed."); in detectErrorSetSocketOption()
542errMsg.append("optval is not in a valid part of the process address space or optlen parameter is t… in detectErrorSetSocketOption()
544 errMsg.append( in detectErrorSetSocketOption()
548 errMsg.append("level is not valid, or the information in optval is not valid."); in detectErrorSetSocketOption()
550 errMsg.append("Connection has timed out when SO_KEEPALIVE is set."); in detectErrorSetSocketOption()
552 errMsg.append( in detectErrorSetSocketOption()
556 errMsg.append("Connection has been reset when SO_KEEPALIVE is set."); in detectErrorSetSocketOption()
558 errMsg.append("The descriptor is not a socket."); in detectErrorSetSocketOption()
560 errMsg.append("unknown problem!"); in detectErrorSetSocketOption()
563 void ChSocket::detectErrorGetSocketOption(int* errCode, std::string& errMsg) { in detectErrorGetSocketOption() argument
567 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorGetSocketOption()
569 errMsg.append("The network subsystem has failed."); in detectErrorGetSocketOption()
571 errMsg.append( in detectErrorGetSocketOption()
575 errMsg.append( in detectErrorGetSocketOption()
579 errMsg.append("The level parameter is unknown or invalid."); in detectErrorGetSocketOption()
581 errMsg.append("The option is unknown or unsupported by the indicated protocol family."); in detectErrorGetSocketOption()
583 errMsg.append("The descriptor is not a socket."); in detectErrorGetSocketOption()
586 errMsg.append("unknown problems!"); in detectErrorGetSocketOption()
633 void ChSocketTCP::detectErrorBind(int* errCode, std::string& errMsg) { in detectErrorBind() argument
637 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorBind()
639 errMsg.append("The network subsystem has failed."); in detectErrorBind()
641 errMsg.append("A process on the machine is already bound to the same\n"); in detectErrorBind()
642 errMsg.append("fully-qualified address and the socket has not been marked\n"); in detectErrorBind()
643 errMsg.append("to allow address re-use with SO_REUSEADDR. For example,\n"); in detectErrorBind()
644 errMsg.append("IP address and port are bound in the af_inet case"); in detectErrorBind()
646 errMsg.append("The specified address is not a valid address for this machine."); in detectErrorBind()
648 errMsg.append("The name or the namelen parameter is not a valid part of\n"); in detectErrorBind()
649 errMsg.append("the user address space, the namelen parameter is too small,\n"); in detectErrorBind()
650 errMsg.append("the name parameter contains incorrect address format for the\n"); in detectErrorBind()
651 errMsg.append("associated address family, or the first two bytes of the memory\n"); in detectErrorBind()
652 errMsg.append("block specified by name does not match the address family\n"); in detectErrorBind()
653 errMsg.append("associated with the socket descriptor s."); in detectErrorBind()
655 errMsg.append("A blocking Windows Sockets 1.1 call is in progress, or the\n"); in detectErrorBind()
656 errMsg.append("service provider is still processing a callback function."); in detectErrorBind()
658 errMsg.append("The socket is already bound to an address. "); in detectErrorBind()
660 errMsg.append("Not enough buffers available, too many connections."); in detectErrorBind()
662 errMsg.append("The descriptor is not a socket."); in detectErrorBind()
664 errMsg.append("unknown problems!"); in detectErrorBind()
667 void ChSocketTCP::detectErrorRecv(int* errCode, std::string& errMsg) { in detectErrorRecv() argument
671 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorRecv()
673 errMsg.append("The network subsystem has failed."); in detectErrorRecv()
675errMsg.append("The buf parameter is not completely contained in a valid part of the user address s… in detectErrorRecv()
677 errMsg.append("The socket is not connected."); in detectErrorRecv()
679 errMsg.append("The (blocking) call was canceled through WSACancelBlockingCall."); in detectErrorRecv()
681 errMsg.append("A blocking Windows Sockets 1.1 call is in progress, or the\n"); in detectErrorRecv()
682 errMsg.append("service provider is still processing a callback function."); in detectErrorRecv()
684 errMsg.append("The connection has been broken due to the keep-alive activity\n"); in detectErrorRecv()
685 errMsg.append("detecting a failure while the operation was in progress."); in detectErrorRecv()
687 errMsg.append("The descriptor is not a socket."); in detectErrorRecv()
689 errMsg.append("MSG_OOB was specified, but the socket is not stream-style\n"); in detectErrorRecv()
690 errMsg.append("such as type SOCK_STREAM, out-of-band data is not supported\n"); in detectErrorRecv()
691 errMsg.append("in the communication domain associated with this socket, or\n"); in detectErrorRecv()
692 errMsg.append("the socket is unidirectional and supports only send operations."); in detectErrorRecv()
694 errMsg.append("The socket has been shut down; it is not possible to recv on a\n"); in detectErrorRecv()
695errMsg.append("socket after shutdown has been invoked with how set to SD_RECEIVE or SD_BOTH."); in detectErrorRecv()
697 errMsg.append("The socket is marked as nonblocking and the receive operation would block."); in detectErrorRecv()
699errMsg.append("The message was too large to fit into the specified buffer and was truncated."); in detectErrorRecv()
701 errMsg.append("The socket has not been bound with bind, or an unknown flag\n"); in detectErrorRecv()
702 errMsg.append("was specified, or MSG_OOB was specified for a socket with\n"); in detectErrorRecv()
703errMsg.append("SO_OOBINLINE enabled or (for byte stream sockets only) len was zero or negative."); in detectErrorRecv()
705 errMsg.append("The virtual circuit was terminated due to a time-out or\n"); in detectErrorRecv()
706errMsg.append("other failure. The application should close the socket as it is no longer usable."); in detectErrorRecv()
708 errMsg.append("The connection has been dropped because of a network\n"); in detectErrorRecv()
709 errMsg.append("failure or because the peer system failed to respond."); in detectErrorRecv()
711 errMsg.append("The virtual circuit was reset by the remote side executing a\n"); in detectErrorRecv()
712 errMsg.append("\"hard\" or \"abortive\" close. The application should close\n"); in detectErrorRecv()
713 errMsg.append("the socket as it is no longer usable. On a UDP datagram socket\n"); in detectErrorRecv()
714 errMsg.append("this error would indicate that a previous send operation\n"); in detectErrorRecv()
715 errMsg.append("resulted in an ICMP \"Port Unreachable\" message."); in detectErrorRecv()
717 errMsg.append("unknown problems!"); in detectErrorRecv()
720 void ChSocketTCP::detectErrorConnect(int* errCode, std::string& errMsg) { in detectErrorConnect() argument
724 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorConnect()
726 errMsg.append("The network subsystem has failed."); in detectErrorConnect()
728 errMsg.append("The socket's local address is already in use and the socket\n"); in detectErrorConnect()
729 errMsg.append("was not marked to allow address reuse with SO_REUSEADDR. This\n"); in detectErrorConnect()
730 errMsg.append("error usually occurs when executing bind, but could be delayed\n"); in detectErrorConnect()
731 errMsg.append("until this function if the bind was to a partially wild-card\n"); in detectErrorConnect()
732 errMsg.append("address (involving ADDR_ANY) and if a specific address needs\n"); in detectErrorConnect()
733 errMsg.append("to be committed at the time of this function."); in detectErrorConnect()
735errMsg.append("The (blocking) Windows Socket 1.1 call was canceled through WSACancelBlockingCall."… in detectErrorConnect()
737 errMsg.append("A blocking Windows Sockets 1.1 call is in progress, or\n"); in detectErrorConnect()
738 errMsg.append("the service provider is still processing a callback function."); in detectErrorConnect()
740 errMsg.append("A nonblocking connect call is in progress on the specified socket.\n"); in detectErrorConnect()
741 errMsg.append("Note In order to preserve backward compatibility, this error is\n"); in detectErrorConnect()
742 errMsg.append("reported as WSAEINVAL to Windows Sockets 1.1 applications that\n"); in detectErrorConnect()
743 errMsg.append("link to either WINSOCK.DLL or WSOCK32.DLL."); in detectErrorConnect()
745 errMsg.append("The remote address is not a valid address (such as ADDR_ANY)."); in detectErrorConnect()
747 errMsg.append("Addresses in the specified family cannot be used with this socket."); in detectErrorConnect()
749 errMsg.append("The attempt to connect was forcefully rejected."); in detectErrorConnect()
751 errMsg.append("The name or the namelen parameter is not a valid part of\n"); in detectErrorConnect()
752 errMsg.append("the user address space, the namelen parameter is too small,\n"); in detectErrorConnect()
753 errMsg.append("or the name parameter contains incorrect address format for\n"); in detectErrorConnect()
754 errMsg.append("the associated address family."); in detectErrorConnect()
756 errMsg.append("The parameter s is a listening socket, or the destination\n"); in detectErrorConnect()
757 errMsg.append("address specified is not consistent with that of the constrained\n"); in detectErrorConnect()
758 errMsg.append("group the socket belongs to."); in detectErrorConnect()
760 errMsg.append("The socket is already connected (connection-oriented sockets only)."); in detectErrorConnect()
762 errMsg.append("The network cannot be reached from this host at this time."); in detectErrorConnect()
764 errMsg.append("No buffer space is available. The socket cannot be connected."); in detectErrorConnect()
766 errMsg.append("The descriptor is not a socket."); in detectErrorConnect()
768 errMsg.append("Attempt to connect timed out without establishing a connection."); in detectErrorConnect()
770 errMsg.append("The socket is marked as nonblocking and the connection\n"); in detectErrorConnect()
771 errMsg.append("cannot be completed immediately."); in detectErrorConnect()
773 errMsg.append("Attempt to connect datagram socket to broadcast address failed\n"); in detectErrorConnect()
774 errMsg.append("because setsockopt option SO_BROADCAST is not enabled."); in detectErrorConnect()
776 errMsg.append("unknown problems!"); in detectErrorConnect()
779 void ChSocketTCP::detectErrorAccept(int* errCode, std::string& errMsg) { in detectErrorAccept() argument
783 errMsg.append("A successful WSAStartup must occur before using this FUNCTION."); in detectErrorAccept()
785 errMsg.append("The network subsystem has failed."); in detectErrorAccept()
787errMsg.append("The addrlen parameter is too small or addr is not a valid part of the user address … in detectErrorAccept()
789errMsg.append("A blocking Windows Sockets 1.1 call was canceled through WSACancelBlockingCall."); in detectErrorAccept()
791 errMsg.append("A blocking Windows Sockets 1.1 call is in progress, or the\n"); in detectErrorAccept()
792 errMsg.append("service provider is still processing a callback function."); in detectErrorAccept()
794 errMsg.append("The listen function was not invoked prior to accept."); in detectErrorAccept()
796errMsg.append("The queue is nonempty upon entry to accept and there are no descriptors available."… in detectErrorAccept()
798 errMsg.append("No buffer space is available."); in detectErrorAccept()
800 errMsg.append("The descriptor is not a socket."); in detectErrorAccept()
802errMsg.append("The referenced socket is not a type that supports connection-oriented service."); in detectErrorAccept()
804errMsg.append("The socket is marked as nonblocking and no connections are present to be accepted."… in detectErrorAccept()
806 errMsg.append("unknown problems!"); in detectErrorAccept()
809 void ChSocketTCP::detectErrorListen(int* errCode, std::string& errMsg) { in detectErrorListen() argument
813 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorListen()
815 errMsg.append("The network subsystem has failed."); in detectErrorListen()
817 errMsg.append("The socket's local address is already in use and the socket was\n"); in detectErrorListen()
818 errMsg.append("not marked to allow address reuse with SO_REUSEADDR. This error\n"); in detectErrorListen()
819 errMsg.append("usually occurs during execution of the bind function, but could\n"); in detectErrorListen()
820 errMsg.append("be delayed until this function if the bind was to a partially\n"); in detectErrorListen()
821 errMsg.append("wild-card address (involving ADDR_ANY) and if a specific address\n"); in detectErrorListen()
822 errMsg.append("needs to be \"committed\" at the time of this function."); in detectErrorListen()
824 errMsg.append("A blocking Windows Sockets 1.1 call is in progress, or the service\n"); in detectErrorListen()
825 errMsg.append("provider is still processing a callback function."); in detectErrorListen()
827 errMsg.append("The socket has not been bound with bind."); in detectErrorListen()
829 errMsg.append("The socket is already connected."); in detectErrorListen()
831 errMsg.append("No more socket descriptors are available."); in detectErrorListen()
833 errMsg.append("No buffer space is available."); in detectErrorListen()
835 errMsg.append("The descriptor is not a socket."); in detectErrorListen()
837 errMsg.append("The referenced socket is not of a type that supports the listen operation."); in detectErrorListen()
839 errMsg.append("unknown problems!"); in detectErrorListen()
842 void ChSocketTCP::detectErrorSend(int* errCode, std::string& errMsg) { in detectErrorSend() argument
846 errMsg.append("A successful WSAStartup must occur before using this function."); in detectErrorSend()
848 errMsg.append("The network subsystem has failed."); in detectErrorSend()
850 errMsg.append("The requested address is a broadcast address,\n"); in detectErrorSend()
851 errMsg.append("but the appropriate flag was not set. Call setsockopt\n"); in detectErrorSend()
852 errMsg.append("with the SO_BROADCAST parameter to allow the use of the broadcast address."); in detectErrorSend()
854 errMsg.append("A blocking Windows Sockets 1.1 call was canceled\n"); in detectErrorSend()
855 errMsg.append("through WSACancelBlockingCall."); in detectErrorSend()
857 errMsg.append("A blocking Windows Sockets 1.1 call is in progress,\n"); in detectErrorSend()
858 errMsg.append("or the service provider is still processing a callback function."); in detectErrorSend()
860 errMsg.append("The buf parameter is not completely contained in a\n"); in detectErrorSend()
861 errMsg.append("valid part of the user address space."); in detectErrorSend()
863 errMsg.append("The connection has been broken due to the keep-alive\n"); in detectErrorSend()
864 errMsg.append("activity detecting a failure while the operation was in progress."); in detectErrorSend()
866 errMsg.append("No buffer space is available."); in detectErrorSend()
868 errMsg.append("The socket is not connected."); in detectErrorSend()
870 errMsg.append("The descriptor is not a socket."); in detectErrorSend()
872 errMsg.append("MSG_OOB was specified, but the socket is not stream-style\n"); in detectErrorSend()
873 errMsg.append("such as type SOCK_STREAM, out-of-band data is not supported\n"); in detectErrorSend()
874 errMsg.append("in the communication domain associated with this socket,\n"); in detectErrorSend()
875 errMsg.append("or the socket is unidirectional and supports only receive operations."); in detectErrorSend()
877 errMsg.append("The socket has been shut down; it is not possible to send\n"); in detectErrorSend()
878 errMsg.append("on a socket after shutdown has been invoked with how set\n"); in detectErrorSend()
879 errMsg.append("to SD_SEND or SD_BOTH."); in detectErrorSend()
881errMsg.append("The socket is marked as nonblocking and the requested operation would block.\n"); in detectErrorSend()
883 errMsg.append("The socket is message oriented, and the message is larger\n"); in detectErrorSend()
884 errMsg.append("than the maximum supported by the underlying transport."); in detectErrorSend()
886 errMsg.append("The remote host cannot be reached from this host at this time."); in detectErrorSend()
888 errMsg.append("The socket has not been bound with bind, or an unknown flag\n"); in detectErrorSend()
889errMsg.append("was specified, or MSG_OOB was specified for a socket with SO_OOBINLINE enabled."); in detectErrorSend()
891 errMsg.append("The virtual circuit was terminated due to a time-out or \n"); in detectErrorSend()
892errMsg.append("other failure. The application should close the socket as it is no longer usable."); in detectErrorSend()
894 errMsg.append("The virtual circuit was reset by the remote side executing a \"hard\" \n"); in detectErrorSend()
895 errMsg.append("or \"abortive\" close. For UPD sockets, the remote host was unable to\n"); in detectErrorSend()
896 errMsg.append("deliver a previously sent UDP datagram and responded with a\n"); in detectErrorSend()
897 errMsg.append("\"Port Unreachable\" ICMP packet. The application should close\n"); in detectErrorSend()
898 errMsg.append("the socket as it is no longer usable."); in detectErrorSend()
900 errMsg.append("The connection has been dropped, because of a network failure\n"); in detectErrorSend()
901 errMsg.append("or because the system on the other end went down without notice."); in detectErrorSend()
903 errMsg.append("unknown problems!"); in detectErrorSend()