unionSocket.h
502 Bytes
/*
* Copyright (c) 2011, 广州江南科友union
* All rights reserved.
* 文件名称: unionSocket.h
* 摘 要: 实现socket功能基本的函数
* 当前版本: 1.0, 编写者: 杨武,修改时间: 2011-11-22 修改内容: 创建
*
*/
#pragma once
int socketConnect(char *ip,int port);
int socketSend(int sockId,char *pValue,int len);
int socketReceive(int sockId,char *pValue,int len,int timeout);
int socketDisconnect(int sockId);
//操作
int socketHandle(int sckid,char *in,int inlen,char *out,int timeout);