1SHUTDOWN(2) 386BSD Programmer's Manual SHUTDOWN(2) 2 3NNAAMMEE 4 sshhuuttddoowwnn - shut down part of a full-duplex connection 5 6SSYYNNOOPPSSIISS 7 ##iinncclluuddee <<ssyyss//ssoocckkeett..hh>> 8 9 _i_n_t 10 sshhuuttddoowwnn(_i_n_t _s, _i_n_t _h_o_w) 11 12DDEESSCCRRIIPPTTIIOONN 13 The sshhuuttddoowwnn() call causes all or part of a full-duplex connection on the 14 socket associated with _s to be shut down. If _h_o_w is 0, further receives 15 will be disallowed. If _h_o_w is 1, further sends will be disallowed. If 16 _h_o_w is 2, further sends and receives will be disallowed. 17 18DDIIAAGGNNOOSSTTIICCSS 19 A 0 is returned if the call succeeds, -1 if it fails. 20 21EERRRROORRSS 22 The call succeeds unless: 23 24 [EBADF] _S is not a valid descriptor. 25 26 [ENOTSOCK] _S is a file, not a socket. 27 28 [ENOTCONN] The specified socket is not connected. 29 30SSEEEE AALLSSOO 31 connect(2), socket(2) 32 33HHIISSTTOORRYY 34 The sshhuuttddoowwnn function call appeared in 4.2BSD. 35 364.2 Berkeley Distribution March 10, 1991 1 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67