代码搜索:socket 开发教程
找到约 10,000 项符合「socket 开发教程」的源代码
代码结果 10,000
www.eeworm.com/read/210377/15200112
h bufio.h
#ifndef BUFIO_H
#define BUFIO_H
#include "def.h"
#include
#ifdef WINDOWS
#include
#endif
class BufIo
{
private:
char *b;
size_t p;
size_t n;
int f_socket_remote
www.eeworm.com/read/210377/15200115
h btstream.h
#ifndef BTSTREAM_H
#define BTSTREAM_H
#include "./def.h"
#include "./bufio.h"
#ifdef WINDOWS
#include "Winsock2.h"
#else
#include "unistd.h"
#endif
class btStream
{
private:
SOCKET sock;
public
www.eeworm.com/read/205865/15304990
h repsock.h
//-< REPSOCK.H >-----------------------------------------------------*--------*
// FastDB Version 1.0 (c) 1999 GARRET * ? *
// (Main Memory Database Management Syst
www.eeworm.com/read/172396/5387748
sgml udp.sgml
UDP
UDP socket
This module provides support for UDP sockets. U
www.eeworm.com/read/169602/5419169
h ndbtcp.h
/* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fou
www.eeworm.com/read/158683/5596460
h repsock.h
//-< REPSOCK.H >-----------------------------------------------------*--------*
// FastDB Version 1.0 (c) 1999 GARRET * ? *
// (Main Memory Database Management Sy
www.eeworm.com/read/368115/9711389
cpp net_udp.cpp
#include "stdafx.h"
#include "net_udp.h"
net_udp::net_udp()
{
;
}
net_udp::~net_udp()
{
netclose();
}
SOCKET net_udp::create()
{
if(client_socket != NULL)
return SOCKET_ERR
www.eeworm.com/read/170872/9783171
h repsock.h
//-< REPSOCK.H >-----------------------------------------------------*--------*
// FastDB Version 1.0 (c) 1999 GARRET * ? *
// (Main Memory Database Management Syst
www.eeworm.com/read/135688/13910098
txt microwin.txt
服务器端:
先创建一个socket_serv;使用非阻塞方式
#include
socket_serv= socket(AF_INET,SOCK_STREAM,0);
fcntl(socket_serv,F_SETFL,O_NONBLOCK);
bind(socket_serv);
listen(socket_serv
www.eeworm.com/read/112354/15489401
h tcp.h
/************************************************************************
*
* FILE NAME