fix Win32 errors, warnings

This commit is contained in:
Chris Danford
2004-03-17 07:45:52 +00:00
parent c318c78a8e
commit 36b557bac2
4 changed files with 9 additions and 7 deletions
+4 -2
View File
@@ -1,3 +1,4 @@
#include "global.h"
/*******************************************
ezsockets.cpp -- Header for sockets.cpp
Designed by Josh Allen and Charles
@@ -49,7 +50,7 @@ int EzSockets::create() {
return (true);
}
bool EzSockets::bind(int port) {
bool EzSockets::bind(unsigned short port) {
if (!check()) {
return false;
@@ -73,6 +74,7 @@ bool EzSockets::listen() {
}
return true;
}
typedef int socklen_t;
bool EzSockets::accept(EzSockets &socket) {
@@ -255,7 +257,7 @@ bool EzSockets::sendData(char data[1024], int size) {
return true;
}
bool EzSockets::connect(std::string host, int port) {
bool EzSockets::connect(std::string host, unsigned short port) {
if (!check()) {
return false;
}