Logo white

Peter M. Groen / libmodbus

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Commits 855
  • Compare
  • Branches 1
  • Tags 0
  • libmodbus
  • src
  • modbus-tcp.c
30 Jan, 2014
1 commit
  • Avoid twice connect() in source code (closes #194)
    29851c2f
    Stéphane Raimbault authored
    2014-01-30 00:52:40 +0100  
    Browse File »

28 Jan, 2014
3 commits
  • Fix TCP IPv4 modbus_connect() on win32 (closes #100 and #165) ...
    706fa6b2
    Thank you Petr Gladkiy and MarjanTomas.
    Sorry for the delay...
    Stéphane Raimbault authored
    2014-01-28 22:46:11 +0100  
    Browse File »
  • Fix 24a05ebd3c0 - win32: init of modbus_tcp_pi_listen (#187)
    7272fb09
    Stéphane Raimbault authored
    2014-01-28 22:39:25 +0100  
    Browse File »
  • INADDR_* macros are defined in host byte order ...
    270f02c8
    From Michael Heimpold:
    Just a nitpick: the INADDR_* macros are defined in host byte order,
    compare INADDR_LOOPBACK. So it would be reasonable to wrap this with
    htonl(INADDR_ANY). However, every experienced socket programmer should
    know that INADDR_ANY equals 0.0.0.0, passing it through htonl does not
    have any effect.
    Stéphane Raimbault authored
    2014-01-28 22:14:07 +0100  
    Browse File »

15 Jan, 2014
2 commits
  • Filter of IP addresses in IPv4 server (closes #190) ...
    c1665d40
    - protect against NULL IP address BTW
    - update documentation
    Stéphane Raimbault authored
    2014-01-15 23:33:20 +0100  
    Browse File »
  • Allow to listen any hosts in IPv6 (closes #32) ...
    8f1cc7b3
    - allow an empty string or NULL for node argument
    - protect against NULL in service argument
    - new test for NULL service
    - update documentation
    Stéphane Raimbault authored
    2014-01-15 23:33:20 +0100  
    Browse File »

09 Jan, 2014
1 commit
  • win32: init of modbus_tcp_pi_listen (#187)
    24a05ebd
    Stéphane Raimbault authored
    2014-01-09 10:40:18 +0100  
    Browse File »

20 Nov, 2013
1 commit
  • Fix response timeout modification on connect (closes #80) ...
    56653068
    Thanks to Perry Kundert for bug report and initial patches.
    Stéphane Raimbault authored
    2013-11-20 09:57:45 +0100  
    Browse File »

19 Nov, 2013
1 commit
  • Add check for protocol identifer in TCP mode
    6bc39ad9
    Stéphane Raimbault authored
    2013-11-19 18:04:51 +0100  
    Browse File »

10 Oct, 2013
2 commits
  • Use accept4 in TCP PI if available
    5c9598fb
    Stéphane Raimbault authored
    2013-10-10 19:44:52 +0200  
    Browse File »
  • Add documentation for tcp[_pi]_accept (closes #31)
    2076d11f
    Stéphane Raimbault authored
    2013-10-10 19:44:41 +0200  
    Browse File »

22 May, 2013
2 commits
  • Rename 'socket' variables to 's' to avoid warning on Windows
    f7799a4f
    Stéphane Raimbault authored
    2013-05-22 23:45:30 +0200  
    Browse File »
  • Use a unsigned long for ioctlsocket on Windows
    f720851a
    Stéphane Raimbault authored
    2013-05-22 23:25:42 +0200  
    Browse File »

10 May, 2013
2 commits
  • Always set socket to -1 on close()
    d8aa5a42
    Stéphane Raimbault authored
    2013-05-10 01:07:02 +0200  
    Browse File »
  • Protect all public functions against invalid context ...
    55d9a371
    - change return argument from void to int
    - update documentation
    Stéphane Raimbault authored
    2013-05-10 00:53:48 +0200  
    Browse File »

01 May, 2013
1 commit
  • Safer modbus_close
    e6b64888
    Stéphane Raimbault authored
    2013-05-01 15:57:51 +0200  
    Browse File »

25 Mar, 2013
1 commit
  • Include winsock2.h before ws2tcpip.h for VS 2005 ...
    3b4d8126
    Thanks to Petr Gladkiy
    Stéphane Raimbault authored
    2013-03-25 11:35:38 +0100  
    Browse File »

25 Feb, 2013
1 commit
  • Avoid C99 declaration in win32 section code (closes #92) ...
    c4290368
    Thanks to oldfaber and endrelovas.
    Stéphane Raimbault authored
    2013-02-25 02:15:22 +0100  
    Browse File »

22 Jan, 2013
1 commit
  • Another quick workaround for deficient OS (closes #63) ...
    34ec939a
    It will better to code something such as:
    https://github.com/crossroads-io/libxs/blob/master/src/err.cpp
    
    I don't intend to rewrite glib neither :(
    Stéphane Raimbault authored
    2013-01-22 23:55:41 +0100  
    Browse File »

07 Jan, 2013
2 commits
  • Remove blank line from previous commit
    1b0f4420
    Stéphane Raimbault authored
    2013-01-07 14:19:06 +0100  
    Browse File »
  • Use nonblocking sockets on Win32 and OS X/iOS too
    ad362fc1
    Julian Raschke authored
    2013-01-07 14:17:06 +0100  
    Browse File »

12 Nov, 2012
1 commit
  • Fix all compilations warnings spotted by new compilation flags
    0468c30b
    Stéphane Raimbault authored
    2012-11-12 23:35:54 +0100  
    Browse File »

08 Nov, 2012
1 commit
  • Dynamic memory allocation of device name (closes #11)
    541804b3
    Stéphane Raimbault authored
    2012-11-08 23:35:33 +0100  
    Browse File »

29 May, 2012
1 commit
  • Return value of _modbus_tcp_pi_connect() on failure (closes #61)
    2dca0423
    Stéphane Raimbault authored
    2012-05-29 02:00:23 +0200  
    Browse File »

19 May, 2012
1 commit
  • Fix TCP PI init under Windows ...
    be4b215d
    Thanks to oldfaber
    Stéphane Raimbault authored
    2012-05-19 23:39:05 +0200  
    Browse File »

07 Apr, 2012
2 commits
  • poll.h is useless to compile TCP backend
    dd4adad8
    Stéphane Raimbault authored
    2012-04-07 22:50:30 +0200  
    Browse File »
  • Display node and service in PI and port in IPv4 at connection
    8d8349b8
    Stéphane Raimbault authored
    2012-04-07 22:50:23 +0200  
    Browse File »

01 Mar, 2012
1 commit
  • Fix incorrect test of select() return code ...
    30054b90
    Thanks to Thomas Stalder and Torello Querci for the report.
    Stéphane Raimbault authored
    2012-03-01 14:51:53 +0100  
    Browse File »

15 Jan, 2012
5 commits
  • Return -1 on getaddrinfo error and print error in debug mode
    7e170c34
    Stéphane Raimbault authored
    2012-01-15 23:25:45 +0100  
    Browse File »
  • Minor - Missing '\n' in debug mode
    46281355
    Stéphane Raimbault authored
    2012-01-15 23:25:45 +0100  
    Browse File »
  • More robust way to establish the connection in non blocking mode
    146e8a08
    Stéphane Raimbault authored
    2012-01-15 23:25:45 +0100  
    Browse File »
  • TCP - Socket in non blocking mode by default ...
    8dc21dda
    Original patch for new connect function by Thomas Stalder.
    Stéphane Raimbault authored
    2012-01-15 23:25:45 +0100  
    Browse File »
  • Apply CLOEXEC flag for TCP protocol independent too (IPv6)
    e90f906b
    Stéphane Raimbault authored
    2012-01-15 23:16:39 +0100  
    Browse File »

31 Dec, 2011
1 commit
  • New RTU receive() to ignore confirmation from other slaves (closes #18) ...
    c1e2e0b3
    - export new symbols to create specific behavior (RTU)
    - the flag can't only be set by slaves
    - new tests
    Stéphane Raimbault authored
    2011-12-31 00:47:03 +0100  
    Browse File »

27 Dec, 2011
1 commit
  • Move RTU filtering in CRC check to avoid useless call to modbus_reply ...
    9d5344cf
    Warning, modbus_receive returns 0 when a query is ignored.
    
    - function removed from TCP and RTU code and from backend structure
    - updated documentation
    - updated examples
    Stéphane Raimbault authored
    2011-12-27 00:15:27 +0100  
    Browse File »

15 Dec, 2011
1 commit
  • Unique transaction identifier by TCP connection ...
    6564c32b
    - remove static variable in the library
    
    libabc is a really good source of inspiration!
    https://git.kernel.org/?p=linux/kernel/git/kay/libabc.git
    Stéphane Raimbault authored
    2011-12-15 07:11:04 +0100  
    Browse File »

02 Nov, 2011
2 commits
  • Use accept4 with SOCK_CLOEXEC when available (Linux)
    2c585851
    Stéphane Raimbault authored
    2011-11-02 23:42:33 +0100  
    Browse File »
  • Open fd and socket with the CLOEXEC flag when available
    b94ba026
    Stéphane Raimbault authored
    2011-11-02 23:15:39 +0100  
    Browse File »

28 Sep, 2011
1 commit
  • Request for Windows Sockets specification version 2.2 instead of 2.0 ...
    e93f2d88
    Thanks to Pavel Mazniker for the report.
    Stéphane Raimbault authored
    2011-09-28 19:47:31 +0200  
    Browse File »

17 Jun, 2011
1 commit
  • Revert libmodbus licence from LGPLv3 to LGPLv2.1 ...
    12753875
    Avoid incompatibility with GPLv2 program. This change has been approved by
    Tobias Doerffel, Florian octo Forster and Hannu Vuolasaho.
    Stéphane Raimbault authored
    2011-06-17 20:35:53 +0200  
    Browse File »