|
|
| version 1.5, 2005/03/20 13:12:49 | version 1.7, 2011/02/17 10:36:05 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include <commctrl.h> | #include <winsock.h> |
| #include "np2.h" | #include <commctrl.h> |
| #include "scrnmng.h" | #include "np2.h" |
| #include "sstp.h" | #include "scrnmng.h" |
| #include "sstp.h" | |
| #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| #include "oemtext.h" | #include "oemtext.h" |
| #endif | #endif |
| Line 105 sstp_senderror:; | Line 106 sstp_senderror:; |
| void sstp_connect(void) { | void sstp_connect(void) { |
| if (hSocket != INVALID_SOCKET) { | if (hSocket != INVALID_SOCKET) { |
| send(hSocket, sstpstr, strlen(sstpstr), 0); | send(hSocket, sstpstr, (int)strlen(sstpstr), 0); |
| } | } |
| } | } |
| Line 208 BOOL sstp_sendonly(const OEMCHAR *msg) { | Line 209 BOOL sstp_sendonly(const OEMCHAR *msg) { |
| #else | #else |
| OEMSPRINTF(msgstr, sendermes, msg); | OEMSPRINTF(msgstr, sendermes, msg); |
| #endif | #endif |
| send(lSocket, msgstr, strlen(msgstr), 0); | send(lSocket, msgstr, (int)strlen(msgstr), 0); |
| ret = SUCCESS; | ret = SUCCESS; |
| } | } |
| closesocket(lSocket); | closesocket(lSocket); |