Basic Client/Server Principle; Important Basic Commands - Siemens RF182C Operating Instructions Manual

Rfid systems
Table of Contents

Advertisement

Examples/applications
10.1 Basic principles of socket programming, exemplary in C
10.1.2

Basic client/server principle

Figure 10-1
10.1.3

Important basic commands

Commands/functions
Socket()
Bind()
Lists()
Connect()
Accept()
Send()
Recv()
Close()
Note
No parameters or return values of the individual functions are listed here since they may
differ in the different operating systems/programming languages.
The names of the functions are examples only, they may differ in the operating
systems/programming languages. These function examples are limited to the basic
principles of the client/server representation – only a partial example of the functions is
shown.
82
Basic client/server principle
Description
Initialization and parameter transfer of a new socket
Assignment of a user (IP address and port number) to a socket
Ready to connect
Function for connecting the client to the server via TCP/IP
Wait function of server until a client connects
Sending data
Receiving data
Closing the socket after completing data transmission.
When working with the RF182C, a Close usually only occurs when the
system is shut down.
RF182C communication module
Operating Instructions, 10/2010

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents