|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Socket Programming how to judge each other immediately and the network calls Brothers, I used to prepare network programming socket, to a machine and send the data if the network apart from the sudden, I can immediately detect how the network is no longer on the other side? Thank you |
Socket Programming how to judge each other immediately and the network calls Send man
RETURN VALUE
The calls return the number of characters sent, or -1 if an error
Occurred.
ERRORS
These are some standard errors generated by the socket layer. Addi-
Antarctic errors may be generated and returned from the underlying proto-
PGA modules; see their respective manual pages.
EAGAIN or EWOULDBLOCK
The socket is marked non-blocking and the requested operation
Would block.
EBADF An invalid descriptor was specified.
ECONNRESET
Connection reset by peer.
EDESTADDRREQ
The socket is not connection-mode, and no peer address is set.
EFAULT An invalid user space address was specified for a parameter.
EINTR A signal occurred before any data was transmitted.
EINVAL Invalid argument passed.
EISCONN
The connection-mode socket EMSGSIZE
The socket type requires that message be sent atomically, and
The size of the message to be sent made this impossible.
ENOBUFS
The output queue for a network interface was full. This gener-
Ally indicates that the interface has stopped sending, but may
Be caused by transient congestion. (Normally, this does not
Occur in Linux. Packets are just silently dropped when a device
Queue overflows. )
ENOMEM No memory available.
ENOTCONN
The socket is not connected, and no target has been given.
ENOTSOCK
The argument's is not a socket.
EOPNOTSUPP
Some bit in the flags argument is inappropriate for the Socket
Type.
EPIPE The local end has been shut down on a connection oriented
Socket. In this case the process will also receive a SIGPIPE
Unless already connected MSG_NOSIGNAL is but a recipient set.was |
Socket Programming how to judge each other immediately and the network calls I write, but the network continued to the other side, not monitored, there are other ways? Top about themselves |
Socket Programming how to judge each other immediately and the network calls Overtime |
Socket Programming how to judge each other immediately and the network calls Write a function to detect heartbeat |
Socket Programming how to judge each other immediately and the network calls Like a moment you can write procedures to monitor each other's network
I once wrote, but three years ago the |
| |