summaryrefslogtreecommitdiffstats
path: root/source/cSocket.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cSocket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cSocket.h b/source/cSocket.h
index 81749048b..21a7cf3c2 100644
--- a/source/cSocket.h
+++ b/source/cSocket.h
@@ -1,3 +1,4 @@
+
#pragma once
@@ -70,6 +71,7 @@ public:
int Listen( int a_Backlog );
cSocket Accept();
int Connect(SockAddr_In & a_Address); // Returns 0 on success, !0 on failure
+ int Connect(const AString & a_HostNameOrAddr, unsigned short a_Port); // Returns 0 on success, !0 on failure
int Receive( char* a_Buffer, unsigned int a_Length, unsigned int a_Flags );
int Send (const char * a_Buffer, unsigned int a_Length);
int Send (const cPacket * a_Packet); // Sends the packet, doesn't handle partial sends