Releases: Brandon-T/ProSocks
Releases · Brandon-T/ProSocks
ProSocks v0.6
Updated SMTP call to work with PascalScript Strings.
Pascal:
var
S: SSLSocket;
begin
S.Init();
S.SetVerbose(True);
S.SetSecurityPolicy(false, false, true);
S.SMTP('smtps://smtp.gmail.com', '[email protected]', 'password', 'SenderName', '[email protected]', '', '', 'Subject', 'Message', '', '', '');
S.Free();
end.
C:
#include <SSLSocket.h>
int main(int argc, const char * argv[])
{
SSLSocket sock = {0};
SSLSocket_Init(&sock);
SSLSock_SetVerbose(&sock, true);
SSLSocket_SetSecurityPolicy(&sock, false, false, true);
SSLSocket_SMTP(&sock, "smtps://smtp.gmail.com", "[email protected]", "password", "SenderName", "[email protected]", NULL, NULL, "Subject", "Message", NULL, NULL, NULL);
SSLSocket_Free(&sock);
}
ProSocks v0.5
- Uses tagged record syntax.
- Updated compile flags and pre-processor flags for compiling on both Windows, OSX, and Linux.
Pascal:
Function GetPage(var url: String): String;
var
sock: SSLSocket;
data: MemoryStruct;
begin
sock.Init();
sock.setURL(url);
sock.setSecurityPolicy(false, false, true);
sock.setURLFollow(false);
sock.doGet(data);
SetLength(result, data.size);
MemMove(data.memory^, result[1], data.size);
sock.Free();
end;
begin
writeln(GetPage('https://github.com/Brandon-T/ProSocks');
end;
C:
#include <SSLSocket.h>
int main(int argc, const char * argv[])
{
SSLSocket sock = {0};
SSLSocket_Init(&sock);
SSLSocket_SetSecurityPolicy(&sock, false, false, true);
SSLSocket_SetURLFollow(&sock, true);
SSLSocket_SetURL(&sock, "https://github.com/Brandon-T/ProSocks");
ProMemoryStruct* mem = SSLSocket_DoPost(&sock);
printf("%.*s", mem->size, mem->data);
SSLSocket_Free(&sock);
}
ProSocks v0.4
- Fixes email error.
- First OSX Release.
- Fixes issue in AddParameters function.
ProSocks v0.3
- Fixed Header imports.
- Fixed Pre-processor condition.
- Fixed Memory Errors due to invalid pointer cast.
- Changed boolean condition to long for curl's requirements.
ProSocks v0.2
- Added exports for libcurl
- Easier to use API
- Support for PascalScript
ProSocks v0.1
Removed bad export.