/modules/debug/ps2link/net_fio.h
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
- /*********************************************************************
- * Copyright (C) 2003 Tord Lindstrom (pukko@home.se)
- * Copyright (C) 2004 adresd (adresd_ps2dev@yahoo.com)
- * This file is subject to the terms and conditions of the PS2Link License.
- * See the file LICENSE in the main directory of this distribution for more
- * details.
- */
- #ifndef _NETFIO_H_
- #define _NETFIO_H_
- int pko_file_serv(void *arg);
- int pko_recv_bytes(int fd, char *buf, int bytes);
- int pko_accept_pkt(int fd, char *buf, int len, int pkt_type);
- int pko_open_file(char *path, int flags);
- int pko_close_file(int fd);
- int pko_read_file(int fd, char *buf, int length);
- int pko_write_file(int fd, char *buf, int length);
- int pko_lseek_file(int fd, unsigned int offset, int whence);
- void pko_close_socket(void);
- void pko_close_fsys(void);
- int pko_remove(char *name);
- int pko_mkdir(char *name, int mode);
- int pko_rmdir(char *name);
- int pko_open_dir(char *path);
- int pko_read_dir(int fd, void *buf);
- int pko_close_dir(int fd);
- /*
- * Don't want printfs to broadcast in case more than 1 ps2 on the same network, so at
- * connect time, the remote PC's IP is stored here and used as destination for printfs.
- */
- extern unsigned int remote_pc_addr;
- #endif