代码搜索:socket 开发教程
找到约 10,000 项符合「socket 开发教程」的源代码
代码结果 10,000
www.eeworm.com/read/233632/14144811
h client.h
#if !defined(CLIENT_H)
#define CLIENT_H
#include
#include
void memblast(void* dest,void* src,DWORD count);
#ifdef __cplusplus
extern "C" {
#endif
//客户端有关网络的代码,接收服务器端发送
www.eeworm.com/read/129864/14221512
java socketopenertest.java
/**
* version 1.00 1999-08-27
* author Cay Horstmann
*/
import java.io.*;
import java.net.*;
public class SocketOpenerTest
{ public static void main(String[] args)
{ String host;
www.eeworm.com/read/129220/14257227
java testfarm.java
package chc;
import java.net.*;
import java.io.*;
public class TestFarm {
public static boolean send = false;
public static boolean go = false;
public static int[] values;
public static S
www.eeworm.com/read/129197/14258239
java simplesocketserver.java
/*
* SimpleSocketServer.java
*
* Created on October 2, 2002, 5:24 PM
*/
package ch20;
import java.net.*;
import java.io.*;
/**
*
* @author Stephen Potts
*/
public class SimpleSocketServer
{
www.eeworm.com/read/230899/14269933
c sockcmd.c
/* Socket status display code
*/
#include
#include "global.h"
#include "mbuf.h"
#include "proc.h"
#include "lzw.h"
#include "usock.h"
#include "socket.h"
#include "commands.h"
/
www.eeworm.com/read/128846/14276672
txt 63.txt
//
<mark>Socket</mark>
两个Java应用程序可通过一个双向的网络通信连接实现数据交换,这个双向链路的一端称为一个<mark>socket</mark>。
<mark>socket</mark>通常用来实现client-server连接。
java.net包中定义的两个类<mark>Socket</mark>和Server<mark>Socket</mark>,分别用来实现双向连接的client和server端
建立连接时所需的寻址信息
远程计算机的机器名或IP地址
试图连接的端口号(P ...
www.eeworm.com/read/127767/14335942
txt e147. creating a client socket.txt
// Create a socket without a timeout
try {
InetAddress addr = InetAddress.getByName("java.sun.com");
int port = 80;
// This constructor will block until the conne
www.eeworm.com/read/127767/14337816
txt e148. creating a server socket.txt
try {
int port = 2000;
ServerSocket srv = new ServerSocket(port);
// Wait for connection from client.
Socket socket = srv.accept();
} catch (IOException
www.eeworm.com/read/127543/14350405
c sread.c
/* Sread.c: */
#include
#include "sockets.h"
/* Sread: this function performs a read from a Socket */
#ifdef __PROTOTYPE__
int Sread(
Socket *skt, /* socket handle */
void *buf, /