summaryrefslogtreecommitdiff
path: root/libpcsxcore/socket.h
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-09 10:00:15 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-10-09 10:00:15 +0000
commitc053578923c3367a442f2a850ccdd5380489c544 (patch)
treed3088cce35230b8b8fa73faed5626e5bafac95a6 /libpcsxcore/socket.h
parent9c12bf58c89d134f30c5ff07b3b2606999d335df (diff)
downloadpcsxr-c053578923c3367a442f2a850ccdd5380489c544.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31468 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/socket.h')
-rw-r--r--libpcsxcore/socket.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/libpcsxcore/socket.h b/libpcsxcore/socket.h
new file mode 100644
index 00000000..bb0a978d
--- /dev/null
+++ b/libpcsxcore/socket.h
@@ -0,0 +1,36 @@
+/* Pcsx - Pc Psx Emulator
+ * Copyright (C) 1999-2003 Pcsx Team
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses>.
+ */
+
+#ifndef __SOCKET_H__
+#define __SOCKET_H__
+
+int StartServer();
+void StopServer();
+
+void GetClient();
+void CloseClient();
+
+int HasClient();
+
+int ReadSocket(char * buffer, int len);
+int RawReadSocket(char * buffer, int len);
+void WriteSocket(char * buffer, int len);
+
+void SetsBlock();
+void SetsNonblock();
+
+#endif