mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54:09 +02:00
Fixing closesocket
linking error.
Whenever I tried to use this Socket class, I get the linking error which says `closesocket` is unresolved. I am not sure this is how it should be done but after specifying the lib, it solved the issue.
This commit is contained in:
parent
86a97a12e5
commit
ae8ee89b0f
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ namespace System.Net
|
||||||
static extern int32 connect(HSocket s, SockAddr* name, int32 nameLen);
|
static extern int32 connect(HSocket s, SockAddr* name, int32 nameLen);
|
||||||
|
|
||||||
#if BF_PLATFORM_WINDOWS
|
#if BF_PLATFORM_WINDOWS
|
||||||
[CLink, StdCall]
|
[Import("wsock32.lib"), CLink, StdCall]
|
||||||
static extern int32 closesocket(HSocket s);
|
static extern int32 closesocket(HSocket s);
|
||||||
#else
|
#else
|
||||||
[CLink, StdCall]
|
[CLink, StdCall]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue