mirror of
https://github.com/Kiritow/GSock.git
synced 2024-03-22 13:10:51 +08:00
Fix compile error with VS
This commit is contained in:
parent
6aebdca0bc
commit
ffcfcb5baf
|
@ -217,7 +217,7 @@ int sock::setrecvtime(int Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
//forgive me, but writing code in hospital is really not a good experience.
|
//forgive me, but writing code in hospital is really not a good experience.
|
||||||
typedef int (*_sock_getname_callback_t)(int,sockaddr*,socklen_t*);
|
using _sock_getname_callback_t = decltype(getsockname);
|
||||||
|
|
||||||
static int _sock_getname_call(int sfd,std::string& ip,int& port,_sock_getname_callback_t fn)
|
static int _sock_getname_call(int sfd,std::string& ip,int& port,_sock_getname_callback_t fn)
|
||||||
{
|
{
|
||||||
|
|
6
gsock.h
6
gsock.h
|
@ -15,11 +15,11 @@ protected:
|
||||||
vsock();
|
vsock();
|
||||||
vsock(const vsock&)=delete;
|
vsock(const vsock&)=delete;
|
||||||
vsock& operator = (const vsock&)=delete;
|
vsock& operator = (const vsock&)=delete;
|
||||||
vsock(vsock&&);
|
vsock(vsock&& v);
|
||||||
vsock& operator = (vsock&&);
|
vsock& operator = (vsock&& v);
|
||||||
~vsock();
|
~vsock();
|
||||||
|
|
||||||
vsock(int);
|
//vsock(int);
|
||||||
|
|
||||||
struct _impl;
|
struct _impl;
|
||||||
_impl* _vp;
|
_impl* _vp;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user