MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / connectTo

Method connectTo

source/core/StarTcp.cpp:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace Star {
6
7TcpSocketPtr TcpSocket::connectTo(HostAddressWithPort const& addressWithPort) {
8 auto socket = TcpSocketPtr(new TcpSocket(addressWithPort.address().mode()));
9 socket->connect(addressWithPort);
10 return socket;
11}
12
13TcpSocketPtr TcpSocket::listen(HostAddressWithPort const& addressWithPort) {
14 auto socket = TcpSocketPtr(new TcpSocket(addressWithPort.address().mode()));

Callers

nothing calls this directly

Calls 3

addressMethod · 0.80
modeMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected