代码搜索:AF_INET
找到约 1,347 项符合「AF_INET」的源代码
代码结果 1,347
www.eeworm.com/read/129891/14219821
c tcpcli04.c
#include "unp.h"
int
main(int argc, char **argv)
{
int i, sockfd[5];
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: tcpcli ");
for (i = 0; i < 5; i++) {
sockfd[
www.eeworm.com/read/129891/14219891
c udpcli01.c
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: udpcli01 ");
bzero(&servaddr, sizeof(servaddr));
se
www.eeworm.com/read/125276/14501902
c sock_get_port.c
//taken from Unix Network Programming By R. Stevens
#include "HSRP.h"
int
sock_get_port(const struct sockaddr *sa, socklen_t salen)
{
switch (sa->sa_family) {
case AF_INET: {
struct sockaddr_in
www.eeworm.com/read/121395/14757593
c socket_udp.c
#include
#include
#include
#include
#include "ndelay.h"
#include "socket.h"
#include "readwrite.h"
int socket_udp(void)
{
int s;
s = soc
www.eeworm.com/read/121395/14757619
c socket_tcp.c
#include
#include
#include
#include
#include "ndelay.h"
#include "socket.h"
#include "readwrite.h"
int socket_tcp(void)
{
int s;
s = soc
www.eeworm.com/read/218495/14917851
txt 1send.txt
#include
#include
#include
#include
#include
#include
#pragma comment(lib,"ws2_32.lib")
main()
{
SOCKET s;
sockaddr_in addr
www.eeworm.com/read/217145/14977053
c socket_udp.c
#include
#include
#include
#include
#include "ndelay.h"
#include "socket.h"
#include "readwrite.h"
int socket_udp(void)
{
int s;
s = soc
www.eeworm.com/read/113943/15120244
c lsif02.c
#include "unp.h"
#include
#ifdef HAVE_SOCKADDR_DL_STRUCT
#include
#include
#endif
int
main(int argc, char **argv)
{
int sockfd, len;
char *ptr, buf
www.eeworm.com/read/208758/15237767
c tcpcli08.c
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: tcpcli ");
sockfd = Socket(AF_INET, SOCK_STREAM, 0);
www.eeworm.com/read/208758/15237768
c tcpcli01.c
#include "unp.h"
int
main(int argc, char **argv)
{
int sockfd;
struct sockaddr_in servaddr;
if (argc != 2)
err_quit("usage: tcpcli ");
sockfd = Socket(AF_INET, SOCK_STREAM, 0);