Commit graph

69 commits

Author SHA1 Message Date
İsmail Yılmaz
e038550cb2
Core/Socket: Unix domain socket (AF_UNIX) support for Windows (#328)
Refactor UnixSocket.cpp with error handling

Updated UnixSocket.cpp to include error handling and platform-specific path definitions.

UnixSocketClient: Update socket path for cross-platform compatibility

UnixSocketServer: Update socket path for Windows and Unix platforms

Core: UnixSocket example code, socket path fixed

autotest/UnixSocket: path correction and unlink.
2026-01-17 19:56:18 +01:00
İsmail Yılmaz
962dd7f37c
Core: UnixSocket (AF_UNIX) implementation (#325)
* Core: UnixSocket (AF_UNIX) implementation

Core/UnixSocket: GetPeerPid refactored

reference/UnixSocketClient: Use default socket type for connection

reference/UnixSocketServer: Use default socket type for listen

Core: UnixSocket API docs & cleanup

Core: UnixSocket friend declaration guarded using ifdefs.

* Core: UnixSocket, GetPeerPid() refactored, docs updated

* Core: TcpSocket renamed as Socket and added unix domain socket support.
Cleanup
Updated API docs.

* Core: UnixSocket entry removed from API docs.

* Core: Socket/SocketWaitEvent API docs cosmetics.

* Core: Socket cosmetics
2025-12-06 12:46:50 +01:00
zouqinglei
f7010adc6a
Add CA certificate authentication to TcpSocket and SSL class (#197) 2024-04-21 10:02:17 +02:00
cxl
a0f0f92a6f Core: Fixed to compile in MacOS
git-svn-id: svn://ultimatepp.org/upp/trunk@15970 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-05-31 07:40:45 +00:00
cxl
5af5f3c25c Core: TcpSocket now using MSG_NOSIGNAL to supress SIGPIPE (thanks zsolt)
git-svn-id: svn://ultimatepp.org/upp/trunk@15966 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2021-05-27 07:14:00 +00:00
cxl
9293ed2be0 uppsrc: Visual C++ compiler bug [W]StringBuffer workaround
git-svn-id: svn://ultimatepp.org/upp/trunk@15123 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-09-23 09:37:31 +00:00
cxl
2cc8a169e2 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@13992 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-02-12 09:17:39 +00:00
cxl
87985d545c Core: WebSocket server close command fixed
git-svn-id: svn://ultimatepp.org/upp/trunk@11469 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-11-15 07:57:36 +00:00
cxl
03912e5ded Core: WebSocket refactored
git-svn-id: svn://ultimatepp.org/upp/trunk@11327 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-09-17 20:21:21 +00:00
cxl
6eac4f17a3 HttpRequest::GetWaitEvents
git-svn-id: svn://ultimatepp.org/upp/trunk@11321 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-09-16 08:51:28 +00:00
cxl
0b50b62c41 Core: Socket::SSLServerNameIndicator, used in HttpRequest; fixes problems with connecting to some https server
git-svn-id: svn://ultimatepp.org/upp/trunk@10990 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-04-08 21:32:22 +00:00
cxl
8ebdcbb0d5 uppsrc: NAMESPACE_UPP / END_UPP_NAMESPACE removed
git-svn-id: svn://ultimatepp.org/upp/trunk@10186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-08-26 17:15:30 +00:00
cxl
5e8dc37055 Win32 includes now lower-case
git-svn-id: svn://ultimatepp.org/upp/trunk@9858 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-21 11:39:26 +00:00
cxl
5edae0e110 .reorganizing
git-svn-id: svn://ultimatepp.org/upp/trunk@9759 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-01 20:21:16 +00:00
cxl
7e7c022a2c Core: Number of IpAddrInfo connection threads increased to 256
git-svn-id: svn://ultimatepp.org/upp/trunk@9362 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-01-01 08:30:45 +00:00
cxl
4c45f667d0 HttpRequest::Clear #931
git-svn-id: svn://ultimatepp.org/upp/trunk@7909 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-11-20 14:32:20 +00:00
cxl
6a3e386c08 Fixed memory leak issue in IpAddrInfo::Execute
git-svn-id: svn://ultimatepp.org/upp/trunk@7404 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-05-30 06:22:55 +00:00
cxl
1c6cc19a40 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7192 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-08 17:36:26 +00:00
cxl
9661e749d2 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7133 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-02 08:51:55 +00:00
cxl
abe2cce158 Core: TcpSocket::WaitConnect
git-svn-id: svn://ultimatepp.org/upp/trunk@7120 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-04-01 16:55:08 +00:00
cxl
d2af891121 Core: Socket::GetLine fixed reaction to EOF
git-svn-id: svn://ultimatepp.org/upp/trunk@7104 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-27 10:32:25 +00:00
cxl
cbf9773fde .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7069 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-21 18:19:18 +00:00
cxl
e731df4db6 Core: HttpRequest fixed issue with RequestTimeout
git-svn-id: svn://ultimatepp.org/upp/trunk@6987 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-03-03 13:46:15 +00:00
cxl
8333c85401 Core: Socket handling EINTR
git-svn-id: svn://ultimatepp.org/upp/trunk@6804 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-01-21 20:13:34 +00:00
cxl
5727c3f633 .cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@6702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-28 17:44:00 +00:00
cxl
bed93110d7 Core: Heap enhancements, NanoStrings, Fixed*Map, fix in Socket - non-ASCII char < 0 issue
git-svn-id: svn://ultimatepp.org/upp/trunk@6661 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-17 13:05:36 +00:00
cxl
df90f0aedc Core: Fixed issue in Socket
git-svn-id: svn://ultimatepp.org/upp/trunk@6657 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-12-15 19:07:29 +00:00
cxl
eed6758d33 Core: Socket::Connect now sets the error description(s)
git-svn-id: svn://ultimatepp.org/upp/trunk@6241 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-08-11 16:17:23 +00:00
cxl
8cf647f6bc Core: Socket Listen on specific address, Skylark: ditto
git-svn-id: svn://ultimatepp.org/upp/trunk@6146 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-06-13 07:29:52 +00:00
cxl
6e16a36ad6 Core: IpAddrInfo now supports selection of IP protocol (v4, v6, any) (thanks ebik)
git-svn-id: svn://ultimatepp.org/upp/trunk@5951 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-04-04 13:37:58 +00:00
cxl
2a43d99118 Report: Printing hints (thanks deep)
git-svn-id: svn://ultimatepp.org/upp/trunk@5935 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-03-30 10:31:22 +00:00
cxl
c3b1e0ce0f *Core: Fix in TcpSocket
git-svn-id: svn://ultimatepp.org/upp/trunk@5736 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-01-26 19:49:04 +00:00
cxl
43191e3697 *Core: TcpSocket fixed to work in BSD
git-svn-id: svn://ultimatepp.org/upp/trunk@5731 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-01-26 11:42:23 +00:00
cxl
81e82b76dc Core: removed _DBG_ code
git-svn-id: svn://ultimatepp.org/upp/trunk@5457 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-10-23 13:27:30 +00:00
cxl
1a69d8f04d Core: TcpSocket now prefers IPv4 over IPv6 in Connect
git-svn-id: svn://ultimatepp.org/upp/trunk@5456 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-10-23 13:11:35 +00:00
cxl
a8a46da35a Core: timeout fix in TcpSocket
git-svn-id: svn://ultimatepp.org/upp/trunk@5455 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-10-23 12:06:35 +00:00
cxl
346c0e9728 Core: Fixed prefork issue in TcpSocket::Accept, Skylark: Fixed base.witz issue
git-svn-id: svn://ultimatepp.org/upp/trunk@5308 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-09-03 08:13:43 +00:00
cxl
aa05356a4c Core: x64 cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@5199 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-07-15 17:53:04 +00:00
cxl
7fa7f28714 *Core: Fixed handle leak in Socket::Accept, Skylark: fixed no_cache issue causing crash in Exe.cpp
git-svn-id: svn://ultimatepp.org/upp/trunk@5154 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-07-08 18:51:24 +00:00
cxl
392e76ba82 Core: added timeout to SSLHandshake
git-svn-id: svn://ultimatepp.org/upp/trunk@5102 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-07-03 13:39:28 +00:00
cxl
3d81121473 *Core: Fixing TcpSocket connection behaviour when server unavailable
git-svn-id: svn://ultimatepp.org/upp/trunk@5070 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-06-21 06:55:40 +00:00
cxl
8850c3e02f Core: LOGDEX, DUMPHEX, fixes of HttpRequest, TcpSocket
git-svn-id: svn://ultimatepp.org/upp/trunk@5011 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-05-28 11:54:20 +00:00
cxl
f7d8f30aed *Core/SSL: Fixed handshake issue in Win32
git-svn-id: svn://ultimatepp.org/upp/trunk@4960 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-05-17 07:54:18 +00:00
cxl
7873c4ded5 Core: TcpSocket::GlobalTimeout
git-svn-id: svn://ultimatepp.org/upp/trunk@4955 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-05-15 18:23:35 +00:00
cxl
ffb47aebd4 *Core: Fix in IpAddrInfo - wrong return value for empty host name
git-svn-id: svn://ultimatepp.org/upp/trunk@4902 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-05-03 06:22:44 +00:00
cxl
bb3c95edc8 Core: HttpRequest improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@4835 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-04-20 15:35:16 +00:00
cxl
5af6b486d3 Core: Http now calls WhenWait when resolves DNS in blocking mode
git-svn-id: svn://ultimatepp.org/upp/trunk@4831 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-04-19 13:35:40 +00:00
cxl
3367eae4af .Core: Removed include from Socket.cpp
git-svn-id: svn://ultimatepp.org/upp/trunk@4806 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-04-18 09:13:05 +00:00
rylek
b0d3e20017 .Core/ValueUtil.cpp: removed unnecessary compiler version checks
.Core/Socket.cpp: added compiler version check to #include <ws2ipdef.h>

git-svn-id: svn://ultimatepp.org/upp/trunk@4805 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-04-18 08:40:47 +00:00
cxl
f7c81ad15d *Core: Fixed msecs issues
git-svn-id: svn://ultimatepp.org/upp/trunk@4798 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-04-17 08:00:22 +00:00