1. ssssoooocccckkkkeeeetttt____wwwwrrrriiiitttteeee((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) ssssoooocccckkkkeeeetttt____wwwwrrrriiiitttteeee((((3333))))
    2. NNNNAAAAMMMMEEEE
    3. socket_write() - send a message from a socket
    4. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
    5. #include <socket_err.h>
    6. int socket_write( int s, mixed message,
    7. void | string address );
    8. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
    9. socket_write() sends a message on a socket s. If the socket
    10. s is of type STREAM or MUD, the socket must already be
    11. connected and the address is not specified. If the socket is
    12. of type DATAGRAM, the address must be specified. The
    13. address is of the form: "127.0.0.1 23".
    14. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
    15. socket_write() returns:
    16. EESUCCESS on success.
    17. a negative value indicated below on error.
    18. EEEERRRRRRRROOOORRRRSSSS
    19. EEFDRANGE Descriptor out of range.
    20. EEBADF Descriptor is invalid.
    21. EESECURITY Security violation attempted.
    22. EENOADDR Socket not bound to an address.
    23. EEBADADDR Problem with address format.
    24. EENOTCONN Socket not connected.
    25. EEALREADY Operation already in progress.
    26. EETYPENOTSUPP Object type not supported.
    27. EEBADDATA Sending data with too many nested levels.
    28. EESENDTO Problem with sendto.
    29. EEMODENOTSUPP Socket mode not supported.
    30. EEWOULDBLOCK Operation would block.
    31. Page 1 (Writen 5/23/97)
    32. ssssoooocccckkkkeeeetttt____wwwwrrrriiiitttteeee((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) ssssoooocccckkkkeeeetttt____wwwwrrrriiiitttteeee((((3333))))
    33. EESEND Problem with send.
    34. EECALLBACK Wait for callback.
    35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
    36. socket_connect(3), socket_create(3)
    37. Page 2 (Writen 5/23/97)