Skip to content

Commit

Permalink
Rename TCP.AcceptTicket as TCP.Accept.Ticket.
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc committed Mar 12, 2022
1 parent 0cd74a5 commit e684230
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/TCP.AcceptTicket.savi → src/TCP.Accept.Ticket.savi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:struct iso TCP.AcceptTicket
:struct iso TCP.Accept.Ticket
:let _listener IO.Actor(IO.Action)
:let _fd U32
:new iso _new(@_listener, @_fd)
Expand Down
2 changes: 1 addition & 1 deletion src/TCP.Engine.savi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

:fun non accept(
actor IO.Actor(IO.Action)
ticket TCP.AcceptTicket
ticket TCP.Accept.Ticket
)
io = IO.CoreEngine.new_from_fd_rw(actor, ticket._fd)
new = @_new_with_io(io)
Expand Down
4 changes: 2 additions & 2 deletions src/TCP.Listen.Engine.savi
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@

:fun ref pending_connections
:yields TCP.AcceptTicket for None
:yields TCP.Accept.Ticket for None
if Platform.windows (
None // TODO
|
Expand All @@ -59,7 +59,7 @@
| 0 | error! // EWOULDBLOCK, don't try again
| -1 | None // Some other error, so we can try again
|
yield TCP.AcceptTicket._new(@_actor, conn_fd)
yield TCP.Accept.Ticket._new(@_actor, conn_fd)
@_count += 1
)
)
Expand Down

0 comments on commit e684230

Please sign in to comment.