proc listen*(self: TCPServer; port: int64; bindAddress: string = "*"): Error {.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.}