c++ Programming Glossary: sock_stream
TCP socket Transfer data from PC to android device (Android NDK) http://stackoverflow.com/questions/11872405/tcp-socket-transfer-data-from-pc-to-android-device-android-ndk select default protocol type if server_skt socket AF_INET SOCK_STREAM 0 1 std cerr socket creation failed std endl exit 1 Initail.. 0 8 create local stream socket client_skt socket PF_INET SOCK_STREAM 0 if client_skt 0 __android_log_print ANDROID_LOG_ERROR jni..
Example code of libssh2 being used for port forwarding http://stackoverflow.com/questions/1580750/example-code-of-libssh2-being-used-for-port-forwarding 0 fd_set read_set write_set SOCKET sshsock socket AF_INET SOCK_STREAM 0 iretval connect sshsock hubaddr ai_addr hubaddr ai_addrlen.. htons 5900 SOCKET local_sock socket AF_INET SOCK_STREAM IPPROTO_TCP ioctlsocket local_sock FIONBIO mode iretval connect..
How to get IP address from sockaddr http://stackoverflow.com/questions/1824279/how-to-get-ip-address-from-sockaddr Thanks to anyone who replies. int tcp_sock socket AF_INET SOCK_STREAM 0 sockaddr_in client client.sin_family AF_INET socklen_t c_len..
crosses initialization of ?˜std::istringstream iss??when using inside while loop [closed] http://stackoverflow.com/questions/18417738/crosses-initialization-of-stdistringstream-iss-when-using-inside-while-loop sadr pthread_t thread_id 0 hsock socket AF_INET SOCK_STREAM 0 if hsock 1 printf Error initializing socket dn errno goto..
Socket Exception: “There are no more endpoints available from the endpoint mapper” http://stackoverflow.com/questions/272523/socket-exception-there-are-no-more-endpoints-available-from-the-endpoint-mappe the fifth line from the bottom. m_accept_fd socket AF_INET SOCK_STREAM IPPROTO_TCP if m_accept_fd INVALID_SOCKET return false int optval..
C++ Winsock P2P http://stackoverflow.com/questions/2843277/c-winsock-p2p new connections. The easiest is SOCKET s socket AF_INET SOCK_STREAM IPPROTO_TCP sockaddr_in localAddress localAddress.sinfamily..
substitute for fork()ing? in windows http://stackoverflow.com/questions/4243880/substitute-for-forking-in-windows 0 sizeof hints hints.ai_family AF_INET hints.ai_socktype SOCK_STREAM hints.ai_flags AI_PASSIVE if status getaddrinfo NULL PORT hints..
Is this a legitimate C++ code? [closed] http://stackoverflow.com/questions/4372062/is-this-a-legitimate-c-code 0 sizeof hints hints.ai_family AF_UNSPEC hints.ai_socktype SOCK_STREAM if rv getaddrinfo argv 1 PORT hints servinfo 0 fprintf stderr.. 0 sizeof hints hints.ai_family AF_UNSPEC hints.ai_socktype SOCK_STREAM hints.ai_flags AI_PASSIVE use my IP if rv getaddrinfo NULL PORT..
C++ Boost.ASIO: passing accepted TCP connection from one opened socket to another using Windows APIs ( while works with Linux APIs)? http://stackoverflow.com/questions/5326564/c-boost-asio-passing-accepted-tcp-connection-from-one-opened-socket-to-anothe WSASocket pi.iAddressFamily AF_INET pi.iSocketType SOCK_STREAM pi.iProtocol IPPROTO_TCP pi 0 0 char sText I can use my duplicated..
C++ SMTP Example http://stackoverflow.com/questions/58210/c-smtp-example main int argc char argv Create Socket sock socket AF_INET SOCK_STREAM 0 if sock 1 perror opening stream socket exit 1 else cout socket..
Using select() for non-blocking sockets http://stackoverflow.com/questions/6715736/using-select-for-non-blocking-sockets struct is empty hints.ai_family AF_INET hints.ai_socktype SOCK_STREAM tcp hints.ai_flags AI_PASSIVE use local host address get server.. struct is empty hints.ai_family AF_INET hints.ai_socktype SOCK_STREAM tcp hints.ai_flags AI_PASSIVE use local host address get server..
Using a C++ TCP client socket on a specific network interface Linux/Unix http://stackoverflow.com/questions/7057482/using-a-c-tcp-client-socket-on-a-specific-network-interface-linux-unix 1 socket creation socket_file_descriptor_ socket AF_INET SOCK_STREAM 0 if socket_file_descriptor_ 0 exit 1 void Connect const std..
Sleep less than one millisecond http://stackoverflow.com/questions/85122/sleep-less-than-one-millisecond struct timeval tv fd_set dummy SOCKET s socket PF_INET SOCK_STREAM IPPROTO_TCP FD_ZERO dummy FD_SET s dummy tv.tv_sec usec 1000000L..
Socket Timeout in C++ Linux http://stackoverflow.com/questions/933122/socket-timeout-in-c-linux inet_addr xxx.xxx.xxx.xxx net socket AF_INET SOCK_STREAM IPPROTO_TCP err connect net struct sockaddr sa sizeof sa if..
How to set the don't fragment (DF) flag on a socket? http://stackoverflow.com/questions/973439/how-to-set-the-dont-fragment-df-flag-on-a-socket default is controlled by the ip_no_pmtu_disc sysctl for SOCK_STREAM sockets and disabled on all others. For non SOCK_STREAM sockets.. SOCK_STREAM sockets and disabled on all others. For non SOCK_STREAM sockets it is the user's responsibility to packetize the data..
|