Advertisement
Guest User

cst_socket.c

a guest
Sep 14th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. // cst_socket.c
  2.  
  3. /*************************************************************************/
  4. /* */
  5. /* Language Technologies Institute */
  6. /* Carnegie Mellon University */
  7. /* Copyright (c) 2000 */
  8. /* All Rights Reserved. */
  9. /* */
  10. /* Permission is hereby granted, free of charge, to use and distribute */
  11. /* this software and its documentation without restriction, including */
  12. /* without limitation the rights to use, copy, modify, merge, publish, */
  13. /* distribute, sublicense, and/or sell copies of this work, and to */
  14. /* permit persons to whom this work is furnished to do so, subject to */
  15. /* the following conditions: */
  16. /* 1. The code must retain the above copyright notice, this list of */
  17. /* conditions and the following disclaimer. */
  18. /* 2. Any modifications must be clearly marked as such. */
  19. /* 3. Original authors' names are not deleted. */
  20. /* 4. The authors' names are not used to endorse or promote products */
  21. /* derived from this software without specific prior written */
  22. /* permission. */
  23. /* */
  24. /* CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK */
  25. /* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
  26. /* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
  27. /* SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE */
  28. /* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
  29. /* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
  30. /* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
  31. /* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
  32. /* THIS SOFTWARE. */
  33. /* */
  34. /*************************************************************************/
  35. /* Author: Alan W Black (awb@cs.cmu.edu) */
  36. /* Date: October 2000 */
  37. /*************************************************************************/
  38. /* */
  39. /* Some generic socket client/server code */
  40. /* */
  41. /*************************************************************************/
  42.  
  43. int cst_socket_open(const char *host, int port)
  44. {
  45. (void)host;
  46. (void)port;
  47. return -1;
  48. }
  49.  
  50. int cst_socket_server(const char *name, int port,
  51. int (process_client)(int name,int fd))
  52. {
  53. (void)name;
  54. (void)port;
  55. (void)process_client;
  56. return -1;
  57. }
  58.  
  59. int cst_socket_close(int socket)
  60. {
  61. return -1;
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement