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
03 Nov, 2010
1 commit
  • Rename modbus_[listen|accept] to modbus_tcp_[listen|accept] ...
    b8c0558c
    These functions have no meaning in RTU so it's better to specialize
    the names and remove them from the backend.
    
    - remove the functions from the backend
    - update tests to handle RTU mode (master and slave)
    - add command line options to tests (rtu or tcp)
    Stéphane Raimbault authored
    2010-11-03 08:07:56 +0100  
    Browse File »

02 Nov, 2010
1 commit
  • Fix to allow the setting of the broadcast address
    ddbd7266
    Stéphane Raimbault authored
    2010-11-02 21:56:00 +0100  
    Browse File »

27 Oct, 2010
1 commit
  • Isolate RTU and TCP headers and simplify Win32 detection ...
    f410aea2
    - move termios header in RTU backend
    - move TCP headers in TCP backend
    - use native serial on Win32 for Cygwin
    - avoid too many defines
    Stéphane Raimbault authored
    2010-10-27 01:11:39 +0200  
    Browse File »

08 Oct, 2010
1 commit
  • Avoid constraints in header ordering ...
    50fa79da
    This change fixes a compilation problem in MinGW. As general rule,
    each header must be as independent as possible.
    Stéphane Raimbault authored
    2010-10-08 16:26:56 +0200  
    Browse File »

07 Oct, 2010
1 commit
  • Fix clang warnings about implicit declaration
    49b2208d
    Stéphane Raimbault authored
    2010-10-07 02:10:09 +0200  
    Browse File »

06 Oct, 2010
3 commits
  • Add missing return when the init of Win32 Socket API fails
    5d787302
    Stéphane Raimbault authored
    2010-10-06 09:00:33 +0200  
    Browse File »
  • Avoid empy function call on non-win32 platforms ...
    dc26ddd7
    Rename the function _modbus_tcp_init to _modbus_tcp_init_win32 and
    warp the call with #ifdef.
    Stéphane Raimbault authored
    2010-10-06 08:57:48 +0200  
    Browse File »
  • Initialise Win32 Socket API in _modbus_tcp_connect/_modbus_tcp_listen ...
    7717e6c4
    Before using any functions of the Win32 Socket API we first have to
    initialise it by calling WSAStartup(). Fixes non-working tests on native
    Win32.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-06 08:48:19 +0200  
    Browse File »

04 Oct, 2010
5 commits
  • Added support for native Win32 ...
    e2f59e9e
    Added support for native Win32 based on
    https://code.launchpad.net/~thepyper/libmodbus/win32-native
    This mainly affects the RTU implementation as the TCP/IP socket
    interface is the same thanks to the winsocks library. The interface
    for using the serial port is completely different on Win32 and is now
    implemented accordingly.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse File »
  • Introduced select() operation for backends ...
    31577bbb
    Introduced the select() operation for backends as the WAIT_DATA macro
    approach is not very extensible and causes trouble when adding platform-
    specific codepaths.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse File »
  • Fix compiler warning on Win32 when calling send()/recv() ...
    2f0b8355
    On Win32 the second argument to recv() and send() is not a void pointer
    but a char pointer, therefore cast the buffer from uint8_t to char.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse File »
  • Removed duplicate header inclusions ...
    3f10ef1d
    There are several header files that are already included in modbus.h
    and thus do not have to be included in the C files.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse File »
  • Pass complete modbus_t structure to send()/recv() of the backends ...
    057be70d
    The send() and recv() functions of the backends might require more
    information than just a file descriptor, therefore pass the complete
    modbus_t structure.
    
    Signed-off-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
    Tobias Doerffel authored
    2010-10-04 14:28:25 +0200  
    Browse File »

28 Sep, 2010
1 commit
  • MAJOR Split RTU and TCP code in two backends ...
    815d11f0
    All private functions and constants are now prefixed by _.
    The modbus protocol uses entry points to call specific functions.
    Stéphane Raimbault authored
    2010-09-28 23:39:51 +0200  
    Browse File »