proc listen*(self: TCPServer; port: int64; bindAddress: string = "*"): int64 {.gcsafe, locks: 0.}
proc isConnectionAvailable*(self: TCPServer): bool {.gcsafe, locks: 0.}
proc takeConnection*(self: TCPServer): StreamPeerTCP {.gcsafe, locks: 0.}
proc stop*(self: TCPServer) {.gcsafe, locks: 0.}