X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftypes.h;h=3af68ab8b57e62ff9a26fbf63c029cc26a1fd0f5;hb=5cf15ce8f6b17a47f662eb8f60de619fd6bf7b53;hp=f3ca3ab904ce1c2b0711d6193b37bc7294109f18;hpb=f59eded7c3e162bbdfc6db424c9badc730017698;p=libs%2Fnet.git diff --git a/source/types.h b/source/types.h index f3ca3ab..3af68ab 100644 --- a/source/types.h +++ b/source/types.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspnet -Copyright © 2008 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #ifndef MSP_NET_TYPES_H_ #define MSP_NET_TYPES_H_ @@ -17,9 +10,9 @@ typedef int socklen_t; #define MSP_NET_INVALID_SOCKET_HANDLE static_cast(-1) #else -typedef IO::Handle SocketHandle; +typedef int SocketHandle; -#define MSP_NET_INVALID_SOCKET_HANDLE MSP_IO_INVALID_HANDLE +#define MSP_NET_INVALID_SOCKET_HANDLE -1 #endif } // namespace Net