代码搜索:如何学习 socket?
找到约 10,000 项符合「如何学习 socket?」的源代码
代码结果 10,000
www.eeworm.com/read/459650/7269050
h socket.h
/*-----------------------------------------------------------------------------
* FILE: socket.h
* AUTH: xuwannian@gmail.com
* TIME: 2008-04-29
*-----------------------------------------------
www.eeworm.com/read/459650/7269058
h socket.h
/*-----------------------------------------------------------------------------
* FILE: socket.h
* AUTH: xuwannian@gmail.com
* TIME: 2008-04-29
*-----------------------------------------------
www.eeworm.com/read/459650/7269069
h socket.h
/*-----------------------------------------------------------------------------
* FILE: socket.h
* AUTH: xuwannian@gmail.com
* TIME: 2008-04-29
*-----------------------------------------------
www.eeworm.com/read/457697/7320862
cpp socket.cpp
#include "Socket.h"
#include "Log.h"
G_Socket::G_Socket()
{
epfd = epoll_create(256);
}
G_Socket::~G_Socket()
{
close(g_sockfd);
close(epfd);
}
bool G_Socket::setNonBlock(int sockfd)
{
int o
www.eeworm.com/read/457697/7320871
h socket.h
///
/// @file Socket.h
/// @brief 套接口的简单封装
/// @author guozhiming
/// @date 2007-05-16
///
#ifndef __G_SOCKET__
#define __G_SOCKET__
#include "def.h"
struct CLI_SOCKET
{
int sock;
char ip[20];
www.eeworm.com/read/455033/7379183
hpp socket.hpp
// -*- Mode : c++ -*-
//
// SUMMARY :
// USAGE :
// ORG :
// AUTHOR : Antoine Le Hyaric -
// E-MAIL : lehyaric@ann.jussieu.fr
//
/*
This file is part of Freefem++
Fr
www.eeworm.com/read/455033/7379187
cpp socket.cpp
// -*- Mode : c++ -*-
//
// SUMMARY :
// USAGE :
// ORG :
// AUTHOR : Antoine Le Hyaric -
// E-MAIL : lehyaric@ann.jussieu.fr
//
/*
This file is part of Freefem++
Fr
www.eeworm.com/read/450883/7475324
java socket.java
java中封装了大量的socket API,为编写网络通信程序提供了极大的方便.
在计算机网络的学习中,大家都已熟练掌握了TCP/UDP的基本原理,在此不在赘述.仅给出接收端和发送端的源代码,供大家讨论和批评.
发送端代码如下:
//只要稍加改进,即可发送数据
import java.io.*;
import java.lang.*;
import java.net.*;
publi
www.eeworm.com/read/449996/7491884
c socket.c
/* Application programming interface routines - based loosely on the
* "socket" model in Berkeley UNIX.
*/
#include
#ifdef __STDC__
#include
#endif
#include
#i
www.eeworm.com/read/449996/7491905
h socket.h
#ifndef _SOCKET_H
#define _SOCKET_H
#ifndef _GLOBAL_H
#include "global.h"
#endif
#include
#ifndef _MBUF_H
#include "mbuf.h"
#endif
#ifndef _PROC_H
#include "proc.h"
#endi