Skip to content

Commit

Permalink
统一Windows和Linux下socket函数和宏。
Browse files Browse the repository at this point in the history
  • Loading branch information
balloonwj committed May 22, 2019
1 parent 44e9994 commit 3f6c6a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flamingoserver/base/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ class NetworkInitializer

typedef int SOCKET;

#define SOCKET_ERROR -1

#define closesocket(s) close(s)


#include <arpa/inet.h>

#include <netinet/in.h>
Expand Down

0 comments on commit 3f6c6a6

Please sign in to comment.