#include <stdio.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <errno.h>#include <netdb.h>Go to the source code of this file.
Defines | |
| #define | SOCKET int |
Functions | |
| void | err_sys (const char *msg) |
| Short Description. | |
| SOCKET | SocketTCP () |
| Short Description. | |
| SOCKET | SocketUDP () |
| Short Description. | |
| hostent * | Gethostbyname (const char *name) |
| Short Description. | |
| int | Connect (SOCKET s, const struct sockaddr_in *name) |
| Short Description. | |
| void | Sockaddr_url (struct sockaddr_in *sa, const char *URL, const u_short sin_port) |
| Short Description. | |
| void | Sockaddr_ip (struct sockaddr_in *sa, const char *IP, const u_short sin_port) |
| Short Description. | |
| SOCKET | Accept_server (SOCKET s, struct sockaddr_in *sa) |
| Short Description. | |
| void | Bind_server (SOCKET s, short port) |
| Short Description. | |
| void | Listen (SOCKET s) |
| Short Description. | |
| void | LocalSocketPair (int type, int protocol, SOCKET sockets[2]) |
| Short Description. | |
|
|
Definition at line 22 of file unp.h. Referenced by UNIXmsgServer::Accept(), Accept_server(), handler(), main(), Daemon::processControlServer(), receiver(), TCPmsg::run(), runServer(), TCPmsg::select(), SocketTCP(), SocketUDP(), testNamedSockets(), and UNIXmsg::UNIXmsg(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 361 of file unp.cpp. References err_sys(), len, and SOCKET. Referenced by main(), and runServer(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 337 of file unp.cpp. References err_sys(). Referenced by main(), OverheadVisionClientWifi::OverheadVisionClientWifi(), and runServer(). |
|
||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 261 of file unp.cpp. References err_sys(). |
|
|
Short Description. Long Description if necessary.
Definition at line 23 of file unp.cpp. References E. Referenced by Accept_server(), Bind(), Bind_server(), Connect(), Gethostbyname(), Listen(), TCPmsg::recv(), UNIXmsg::recv(), TCPmsg::recvNoWait(), UNIXmsg::recvNoWait(), TCPmsg::run(), TCPmsg::select(), TCPmsg::send(), UNIXmsg::send(), SocketTCP(), and SocketUDP(). |
|
|
Short Description. Long Description if necessary.
Definition at line 242 of file unp.cpp. References err_sys(). Referenced by Sockaddr_url(). |
|
|
Short Description. Long Description if necessary.
Definition at line 279 of file unp.cpp. References err_sys(). Referenced by main(), and runServer(). |
|
||||||||||||||||
|
Short Description. This creates a connect local (UNIX domain) socket pair. The pair is useful for a program that will fork another process. The child process will keep one of the sockets, and the parent will keep the other.
Definition at line 431 of file unp.cpp. Referenced by UNIXmsg::UNIXmsg(). |
|
||||||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 405 of file unp.cpp. Referenced by main(), and TCPmsg::TCPmsg(). |
|
||||||||||||||||
|
Short Description. Long Description if necessary.
Definition at line 382 of file unp.cpp. References Gethostbyname(). Referenced by main(), OverheadVisionClientWifi::OverheadVisionClientWifi(), and TCPmsg::TCPmsg(). |
|
|
Short Description. Long Description if necessary.
Definition at line 194 of file unp.cpp. References err_sys(), sock, and SOCKET. Referenced by main(), OverheadVisionClientWifi::OverheadVisionClientWifi(), runServer(), and TCPmsg::TCPmsg(). |
|
|
Short Description. Long Description if necessary.
Definition at line 217 of file unp.cpp. References err_sys(), sock, and SOCKET. Referenced by main(), and OverheadVisionClientWifi::OverheadVisionClientWifi(). |
1.4.4