酒店管理专业发展计划:有关于connect返回值问题
来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 04:14:53
例程: unsigned char status; status = connect( stxvideo, (PSA) &sin_server, sizeof(sin_server) );
if( status< 0 ){
printf("failed video connect (error code:%d)\n",fdError());
}else{
printf("video connect successful\n" );
}此例程错误,因为If connect( ) succeeds, the function returns 0. Otherwise, a value of -1 is returned and the function fdError() can be called to determine the error 而status定义的是无符号的
if( status< 0 ){
printf("failed video connect (error code:%d)\n",fdError());
}else{
printf("video connect successful\n" );
}此例程错误,因为If connect( ) succeeds, the function returns 0. Otherwise, a value of -1 is returned and the function fdError() can be called to determine the error 而status定义的是无符号的
有关于connect返回值问题
c语言函数返回值问题
HRESULT返回值说明
急!有关于法律的问题,请律师帮忙 - 已回答 - 搜搜问问
急!有关于法律的问题,请律师帮忙 - 已解决 - 搜搜问问
放射性物质易从口入 有关于核辐射种种问题
放射性物质易从口入?有关于核辐射种种问题
有关于股票
有关于中国历史建筑
资产重组有关增值税问题
房产税有关问题
车船税有关问题
有关税务问题
“汇率”的有关问题
有关WINCC激活问题?
溃疡病有关问题
尿路感染有关问题
量词有关问题探讨
有关婚姻的问题
转让土地使用权或者销售不动产同时一并销售附着于土地或者不动产上的固定资产有关税收问题
C语言 自定义函数返回数组的问题
有关于房价的内幕
有关于牛仔裤的常识
有关于近视、远视、老花眼