PageRenderTime 27ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/debug/ps2link/net_fio.h

https://bitbucket.org/ifcaro/open-ps2-loader/
C++ Header | 35 lines | 20 code | 4 blank | 11 comment | 0 complexity | 8fe844af8b5fa7801ab3992f38c0ebf4 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*********************************************************************
  2. * Copyright (C) 2003 Tord Lindstrom (pukko@home.se)
  3. * Copyright (C) 2004 adresd (adresd_ps2dev@yahoo.com)
  4. * This file is subject to the terms and conditions of the PS2Link License.
  5. * See the file LICENSE in the main directory of this distribution for more
  6. * details.
  7. */
  8. #ifndef _NETFIO_H_
  9. #define _NETFIO_H_
  10. int pko_file_serv(void *arg);
  11. int pko_recv_bytes(int fd, char *buf, int bytes);
  12. int pko_accept_pkt(int fd, char *buf, int len, int pkt_type);
  13. int pko_open_file(char *path, int flags);
  14. int pko_close_file(int fd);
  15. int pko_read_file(int fd, char *buf, int length);
  16. int pko_write_file(int fd, char *buf, int length);
  17. int pko_lseek_file(int fd, unsigned int offset, int whence);
  18. void pko_close_socket(void);
  19. void pko_close_fsys(void);
  20. int pko_remove(char *name);
  21. int pko_mkdir(char *name, int mode);
  22. int pko_rmdir(char *name);
  23. int pko_open_dir(char *path);
  24. int pko_read_dir(int fd, void *buf);
  25. int pko_close_dir(int fd);
  26. /*
  27. * Don't want printfs to broadcast in case more than 1 ps2 on the same network, so at
  28. * connect time, the remote PC's IP is stored here and used as destination for printfs.
  29. */
  30. extern unsigned int remote_pc_addr;
  31. #endif