aboutsummaryrefslogtreecommitdiff
path: root/pflocal/socket.c
Commit message (Collapse)AuthorAgeFilesLines
* fix common misspellingsJonathan Neuschäfer2011-08-201-1/+1
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* Fix port transmission over pflocalManuel Menal2010-09-191-1/+1
| | | | | | * pflocal/socket.c (S_socket_recv): Return transmitted port to caller thanks to MACH_MSG_TYPE_COPY_SEND instead of MACH_MSG_TYPE_MAKE_SEND (since this is a send right here).
* Implement getsockopt (fd, SOL_SOCKET, SO_TYPE)Emilio Pozuelo Monfort2010-07-171-5/+44
| | | | | * pflocal/socket.c (S_socket_getopt): Add SO_TYPE support. (S_socket_setopt): Fix return value.
* 2008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2008-07-221-1/+4
| | | | | * socket.c (S_socket_send): Release a reader reference instead of a writer reference when the destination is given.
* fix copyright yearsSamuel Thibault2008-07-221-1/+1
|
* 2008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>Samuel Thibault2008-07-221-0/+1
| | | | | | * pf.c (S_socket_fabricate_address): Drop one reference from addr since we only take the send right. * socket.c (S_socket_name): Likewise.
* Revery previous change. Was intended for ams-branch, not HEAD.Neal H. Walfield2005-08-291-38/+36
|
* pflocal/Neal H. Walfield2005-08-291-36/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-17 Neal H. Walfield <neal@gnu.org> * connq.h (struct connq_request): Remove forward. (connq_listen): Wait for a request to be queued not until there is a connection attempt. Remove REQ parameter. Update callers. (connq_request_complete): Remove declaration. (connq_connect): Wait for a slot to queue a request not until there is an acceptor. Remove SOCK parameter. Update callers. (connq_connect_complete): New declaration. (connq_connect_cancel): New declaration. * connq.c (struct connq): Remove fields noqueue, queue, length, head and tail. Add fields head, tail, count, max, connectors and num_connectors. That is, replace the circular buffer with a singly linked list. (qnext): Remove function. (struct connq_request): Remove field signal, lock, completed and err. Add field next. (connq_request_init): Rewrite according to new semantics. (connq_request_enqueue): New function. (connq_request_dequeue): New function. (connq_create): Update according to new semantics. (connq_destroy): Likewise. (connq_listen): Rewrite to not block until there is a connector but until there is a request in the queue. (connq_request_complete): Remove function. (connq_connect): Rewrite to not block until there is an acceptor but until there is space for a request. (connq_connect_complete): New function. (connq_connect_cancel): New function. (connq_compress): Remove dead code. (connq_set_length): Rewrite. * socket.c (S_socket_connect): Create the server socket here... (S_socket_accept): ... not here.
* (S_socket_recv):Miles Bader1996-01-271-6/+6
| | | | | Test for MSG_OOB in IN_FLAGS, not FLAGS. Return EINVAL if we get MSG_OOB, not EOPNOTSUPP.
* (S_socket_connect): Handle connectionless protocols correctly.Miles Bader1996-01-241-29/+56
| | | | (S_socket_send): Allow DEST_ADDR to be null if the socket is connected.
* (S_socket_bind, S_socket_connect): Drop ADDR's send right.Miles Bader1995-11-211-15/+14
|
* (S_socket_send): Pass in the new NOBLOCK parameter to pipe_send.Miles Bader1995-08-311-1/+2
|
* (S_socket_send, S_socket_recv): `aquire' -> `acquire'.Miles Bader1995-08-291-3/+3
|
* (S_socket_recv): Use pipe_release_reader instead of pipe_release.Miles Bader1995-08-161-3/+12
| | | | | (S_socket_send): Use pipe_release_writer instead of pipe_release. (S_socket_recv): Reflect EPIPE as EOF.
* (S_socket_connect): Actually use the connq operations to connect, like theMiles Bader1995-07-301-22/+71
| | | | | | | | | | | listening socket is expecting, instead of connecting directly to it. (S_socket_connect): Use the CONNECT_QUEUE field to allow only a single connection attempt at once. (S_socket_connect): Check for already-connected sockets here instead of waiting for the final rendezvous. (S_socket_connect): Return ECONNREFUSED when trying to connect to a non-existant address, instead of EADDRNOTAVAIL. Rename all uses of the CONNQ field in struct sock to LISTEN_QUEUE.
* entered into RCSMiles Bader1995-07-261-7/+7
|
* Formerly socket.c.~14~Miles Bader1995-07-221-1/+11
|
* Formerly socket.c.~13~Miles Bader1995-07-221-0/+2
|
* Formerly socket.c.~12~Miles Bader1995-07-191-1/+1
|
* Formerly socket.c.~11~Miles Bader1995-07-171-16/+18
|
* Formerly socket.c.~10~Miles Bader1995-07-161-23/+57
|
* Formerly socket.c.~9~Miles Bader1995-07-151-1/+8
|
* Formerly socket.c.~8~Miles Bader1995-07-141-61/+130
|
* Formerly socket.c.~7~Miles Bader1995-07-081-0/+6
|
* Formerly socket.c.~6~Miles Bader1995-07-051-2/+3
|
* Formerly socket.c.~5~Miles Bader1995-07-041-2/+23
|
* Formerly socket.c.~4~Miles Bader1995-07-031-1/+18
|
* Formerly socket.c.~3~Miles Bader1995-07-021-12/+64
|
* Formerly socket.c.~2~Miles Bader1995-07-021-0/+97
|
* Initial revisionMiles Bader1995-07-011-0/+22