John
|
ed3ce34422
|
Only create the socket once. If we fail to connect is we should try to reuse it later.
|
2014-03-18 20:43:03 +01:00 |
|
Micke Prag
|
bca00ef148
|
F_SETFD must be supplied to fcntl() to set options
|
2012-12-05 11:21:13 +01:00 |
|
Micke Prag
|
174c31f4ca
|
Use fcntl() to set FD_CLOEXEC on OS X since the SOCK_CLOEXEC flag for socket() isn't supported.
|
2012-12-05 11:18:07 +01:00 |
|
Micke Prag
|
2cb1a2ac97
|
Set the flag O_CLOEXEC on all file handles so they don't interferes with the execution of scripts. See #100
|
2012-12-04 17:28:49 +01:00 |
|
Micke Prag
|
58bf51a6e8
|
Convert strcpy to snprintf. This is better according to Google style guidelines "runtime/printf"
|
2012-06-19 16:18:44 +02:00 |
|
Micke Prag
|
6688f44084
|
Missing username in TODO according to Google style guidelines "readability/todo"
|
2012-06-19 12:30:52 +02:00 |
|
Micke Prag
|
6666dc0294
|
Do not use namespace using-directives according to Google style guidelines "build/namespaces"
|
2012-06-19 12:30:51 +02:00 |
|
Micke Prag
|
75f21588e5
|
Should have a space between // and comment "whitespace/comments"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
e1608f94a8
|
{ should almost always be at the end of the previous line, according to Google style guidelines "whitespace/braces"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
78444e20b9
|
Add #include <string> for string, according to Google style guidelines "build/include_what_you_use"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
8d0228ced2
|
Add copyright message according to Google style guidelines "legal/copyright"
|
2012-06-19 12:30:50 +02:00 |
|
Micke Prag
|
5b5be387cd
|
Include the directory when naming .h files. According to Google style guideline "build/include".
|
2012-06-19 12:30:49 +02:00 |
|
Micke Prag
|
488ab8c754
|
The function close() is declared in unistd.h. We must include this since it might not be pulled in by other headers on all platforms. Closes #216
|
2012-06-08 12:28:13 +02:00 |
|
Micke Prag
|
9500c4c898
|
Convert dos endings to unix in telldus-core, see #160
|
2012-02-27 17:37:52 +01:00 |
|
Stefan Persson
|
673daf471d
|
Sending noop to TellStick every 5 minutes, attempting to reconnect if TellStick is missing. In Linux.
|
2012-01-10 16:00:14 +01:00 |
|
Stefan Persson
|
e3587763ee
|
Fixed so that receiving socket has no buffer limit when reading in Linux. See ticket #101.
|
2011-12-23 12:46:17 +01:00 |
|
Micke Prag
|
b25802cd26
|
Use our conversion functions instead of the old ugly hack to convert between utf-8<->wchar_t
|
2011-03-02 13:10:16 +00:00 |
|
Micke Prag
|
0e321f9a99
|
Implemented timeouts on Unix
|
2010-11-02 11:20:00 +00:00 |
|
Stefan Persson
|
a163a78982
|
Lock for 'connect'-variable in Socket_unix
|
2010-10-28 15:44:15 +00:00 |
|
Micke Prag
|
9d10ea4c9f
|
Added reading using select
|
2010-10-28 15:15:36 +00:00 |
|
Micke Prag
|
aa8d4a0f9d
|
Set connected to false if error occur
|
2010-10-28 14:29:46 +00:00 |
|
Stefan Persson
|
7fe03d2dad
|
Now closing client socket after use
|
2010-10-27 12:24:25 +00:00 |
|
Micke Prag
|
c992e7e967
|
Added missing function Socket::read(int), timeout not supported on Unix yet though
|
2010-10-24 16:07:02 +00:00 |
|
Micke Prag
|
c94afb760e
|
Made socket compile under Linux. Some functions still need to be implemented
|
2010-10-20 14:51:43 +00:00 |
|
Micke Prag
|
f4350244d5
|
Fixed some compile warnings
|
2010-10-14 22:36:48 +00:00 |
|
Micke Prag
|
549a146ce9
|
Implemented the socket in unix
|
2010-10-12 13:17:06 +00:00 |
|
Micke Prag
|
44beddc80f
|
Added stub Socket::connect()
|
2010-10-12 07:19:14 +00:00 |
|
Micke Prag
|
a2431533bd
|
Added function stubs Socket::Socket() and Socket::write()
|
2010-10-08 18:55:41 +00:00 |
|
Micke Prag
|
b806913cea
|
Added function stubs to Socket in unix
|
2010-10-08 12:28:07 +00:00 |
|