summaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/odbc/socket.h')
-rw-r--r--src/interfaces/odbc/socket.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/interfaces/odbc/socket.h b/src/interfaces/odbc/socket.h
index 458adc716c2..457ab258da6 100644
--- a/src/interfaces/odbc/socket.h
+++ b/src/interfaces/odbc/socket.h
@@ -1,11 +1,11 @@
-
-/* File: socket.h
- *
- * Description: See "socket.c"
- *
- * Comments: See "notice.txt" for copyright and license information.
- *
- */
+
+/* File: socket.h
+ *
+ * Description: See "socket.c"
+ *
+ * Comments: See "notice.txt" for copyright and license information.
+ *
+ */
#ifndef __SOCKET_H__
#define __SOCKET_H__
@@ -36,8 +36,8 @@ struct SocketClass_ {
SOCKET socket;
char *errormsg;
- int errornumber;
-
+ int errornumber;
+
char reverse; /* used to handle Postgres 6.2 protocol (reverse byte order) */
};
@@ -49,9 +49,9 @@ struct SocketClass_ {
/* error functions */
#define SOCK_get_errcode(self) (self->errornumber)
#define SOCK_get_errmsg(self) (self->errormsg)
-
-/* Socket prototypes */
+
+/* Socket prototypes */
SocketClass *SOCK_Constructor();
void SOCK_Destructor(SocketClass *self);
char SOCK_connect_to(SocketClass *self, unsigned short port, char *hostname);