network.h

来自「一个关于 RTP的例子」· C头文件 代码 · 共 46 行

H
46
字号
/*******
**
** FILE INFO:
** project:	RTP_lib
** file:	Network.h
** started on:	04/11/03
** started by:	Cedric Lacroix <lacroix_cedric@yahoo.com>
**
**
** TODO:
**
** BUGS:
**
** UPDATE INFO:
** updated on:	05/13/03
** updated by:	Cedric Lacroix <lacroix_cedric@yahoo.com>
**
********/

#ifndef NETWORK_H
#define NETWORK_H


#include 		"Types.h"


typedef struct remote_address
{
	SOCKET		socket;				/* socket */
	char		address[16];			/* IP address */
	u_int16		port;				/* Port number */
	u_int8		ttl;				/* ttl */
	struct remote_address *next;			/* next address */
} remote_address_t;


/* Structs */
typedef struct
{
	/* Network */
	int		connection_opened;		/* equal "1" if the connection is opened */
	remote_address_t* send_addr_list;		/* list of the tragets */
} conx_context_t;

#endif /* NETWORK_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?