⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtputil.c

📁 h.248协议源码
💻 C
字号:
/*

  NOTICE:
  This document contains information that is proprietary to RADVision LTD..
  No part of this publication may be reproduced in any form whatsoever without 
  written prior approval by RADVision LTD..
  
    RADVision LTD. reserves the right to revise this publication and make changes 
    without obligation to notify any person of such revisions or changes.
    
*/ 

#include "rtputil.h"
#include "rvsocket.h"

void* ConvertToNetwork(void *data, int pos, int n) {
	int i;
    for (i = pos; i < pos + n; ++i) 
	  ((RvUint32*)data)[i] = htonl(((RvUint32*)data)[i]);

    return data;
}

void* ConvertFromNetwork(void *data, int pos, int n) {
	int i;
	for (i = pos; i < pos + n; ++i) 
	  ((RvUint32*)data)[i] = ntohl(((RvUint32*)data)[i]);

	return data;
}

⌨️ 快捷键说明

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