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

📄 messagesocket.cpp

📁 kphone-4.2,SHELL协议的VOIP电话
💻 CPP
字号:
#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "messagesocket.h"MessageSocket::MessageSocket( void ){	type = None;	bound = false;}MessageSocket::~MessageSocket( void ){}bool MessageSocket::setHostname( const char *hostname ){	if ( ( he = gethostbyname( hostname ) ) == NULL ) {		perror( "MessageSocket::setHostname(): gethostbyname() failed" );		return false;	}	return true;}void MessageSocket::forcePortNumber( unsigned int newport ){	ourport = newport;}

⌨️ 快捷键说明

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