Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/PhotonLibOS
/ close
Method
close
net/rsocket/rsocket.cpp:66–73 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
64
operator bool() const { return fd >= 0; }
65
66
int close() {
67
int ret = -1;
68
if (fd >= 0) {
69
ret = rclose(fd);
70
fd = -1;
71
}
72
return ret;
73
}
74
75
Object* get_underlay_object(uint64_t) { return (Object*)(uint64_t)fd; }
76
Callers
1
close
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected