MCPcopy Create free account
hub / github.com/catboost/catboost / GetAddress

Method GetAddress

util/network/socket_ut.cpp:208–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206UNIT_TEST_SUITE_REGISTRATION(TPollTest);
207
208sockaddr_in TPollTest::GetAddress(ui32 ip, ui16 port) {
209 struct sockaddr_in addr;
210 memset(&addr, 0, sizeof(addr));
211 addr.sin_family = AF_INET;
212 addr.sin_port = htons(port);
213 addr.sin_addr.s_addr = htonl(ip);
214 return addr;
215}
216
217SOCKET TPollTest::CreateSocket() {
218 SOCKET s = socket(AF_INET, SOCK_STREAM, 0);

Callers 11

SendLowMethod · 0.80
ProcessPingPacketMethod · 0.80
operator==Function · 0.80
FinishRequestMethod · 0.80
CacheConnectionMethod · 0.80
StepMethod · 0.80
DoSendsMethod · 0.80
SendRequestImplMethod · 0.80
GetDebugInfoLockedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected