diff --git a/asyncutils.nim b/asyncutils.nim index 1016367..76a15ad 100644 --- a/asyncutils.nim +++ b/asyncutils.nim @@ -8,8 +8,6 @@ from sequtils import map, foldl from posix import - SOL_SOCKET, - SCM_RIGHTS, EINTR, EWOULDBLOCK, EAGAIN, @@ -52,10 +50,10 @@ proc asyncExecCmd*(command: string): Future[int] = addEvent(event, callback) return future -type ControlMessage = object - level: int - msgType: int - data: string +type ControlMessage* = object + level*: int + msgType*: int + data*: string proc asyncSendMsg*(fd: AsyncFD, data: string, cmsgs: seq[ControlMessage] = @[]): Future[void] =