Denis Kenzior
abb72e8999
gatchat: Add support for shutting down the server
...
By sending SIGUSR1 we can initiate a soft server-shutdown.
2016-01-11 15:32:54 -06:00
Marcel Holtmann
c49c3314d1
gatchat: Avoid shadowing global AT server variable
2012-07-15 20:14:12 -03:00
Marcel Holtmann
21f9da9916
gatchat: Update copyright information
2011-10-10 13:39:25 -07:00
Denis Kenzior
1bd4f75ac0
test-server: Update to the new GAtPPP API
2011-05-24 12:25:08 -05:00
Denis Kenzior
cccf76cfdf
test-server: Remove legacy code
...
The previous thinking was to use the PPP stack to send Conf-Naks with
some delay to client requests until the IP configuration was setup
correctly. However, we now hide this by using the delay during the
processing of the ATD. This code is no longer relevant.
2011-05-24 11:47:46 -05:00
Denis Kenzior
ef49d65b70
gsmdial: Introduce data_mode
...
If we're in PPP mode, then don't send unsolicited notifications. Only a
NO CARRIER is really allowed.
2011-02-28 16:13:56 -06:00
Denis Kenzior
d3350d6662
test-server: Make sure to send CONNECT
...
Before starting the ppp session we should make sure that the CONNECT
response has been sent on the wire.
2011-02-28 16:13:56 -06:00
Denis Kenzior
3f2f11fe8f
test-server: Remove root user check
2011-02-28 16:13:55 -06:00
Guillaume Zajac
205d40db82
test-server: Fix crash when remote disconnects
...
If the remote side kills the connection when PPP is established, we
should not try to resume the AT server.
2011-02-17 11:30:47 -06:00
Denis Kenzior
55d54e377a
test-server: Fix a few more occurrences
2011-02-15 16:05:02 -06:00
Denis Kenzior
a6f910e27c
gatserver: Change callback signature
...
Provide the originating GAtServer to the callback
2011-02-15 15:47:32 -06:00
Denis Kenzior
5da299ad34
test-server: Behavior to match previous commit
2011-02-15 15:47:32 -06:00
Jeevaka Badrappan
2182336c8b
gatchat: M15 coding styles fixes
2011-01-12 08:06:59 -08:00
Lucas De Marchi
521071a785
gatchat: explicitly compare pointers to NULL
...
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/ )
// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@
- !E
+ E == NULL
// </smpl>
2010-11-29 12:05:29 -06:00
Lucas De Marchi
53f1e826c6
Fix common misspellings in gatchat
...
Fix common misspellings by using the list available at
http://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
From the list cited above, the substitution script found the following
misspellings:
priviledge->privilege
succeded->succeeded
2010-09-14 16:00:42 +09:00
Zhenhua Zhang
1badaf741a
test-server: Refactor set_raw_mode
...
Rename variable 'options' to 'ti' and use sizeof(ti).
2010-07-06 22:30:32 -03:00
Zhenhua Zhang
4ec07e9443
test-server: Use cfmakeraw to set TTY raw mode
...
Use cfmakeraw to disable echoing and special characters processing. If
we don't turn off ICRNL, TTY layer translates \r\n to \n\n.
2010-07-06 09:49:48 -03:00
Denis Kenzior
3a6b3bcd0c
test-server: Send a NO_CARRIER when ppp is done
2010-06-29 12:12:42 -05:00
Denis Kenzior
2955c206e4
test-server: Update to the new API
2010-06-29 12:01:34 -05:00
Denis Kenzior
969862337a
test-server: Update to the new API
2010-06-29 11:50:25 -05:00
Zhenhua Zhang
0725aba03f
test-server: Configure network interface
...
Require ROOT priviledge to:
1. Run external command to configure and bring up network interface.
2. Enable kernel IP forwarding.
2010-06-28 17:39:18 -05:00
Denis Kenzior
90d240820b
ppp: Tweak the set_server_info API
2010-06-28 17:38:54 -05:00
Zhenhua Zhang
b6601bfeed
test-server: Add PPP server support
...
So that gsmdial and wvdial could talk to test-server and establish PPP
connection.
2010-06-28 16:37:20 -05:00
Zhenhua Zhang
199582f684
test-server: Fix GIOChannel leak in create_tty
...
Remove client_io and unref server_io after creating GAtServer.
2010-06-17 14:54:42 -05:00
Marcel Holtmann
123b87de2c
No to check for NULL pointers with g_free
2010-04-15 04:42:03 -07:00
Marcel Holtmann
7a27cc42fc
Reindent the handler registration inside AT server
2010-04-12 18:13:02 -07:00
Marcel Holtmann
5b229e60c9
The exit() function should always use positive exit values
2010-04-12 17:37:50 -07:00
Marcel Holtmann
313eb4f285
The AT+CGDATA command should return CONNECT on success
2010-04-12 16:36:06 -07:00
Marcel Holtmann
9fe2d4c88c
Add fake support for AT+CGDATA and AT+CGDCONT inside AT server
2010-04-12 16:34:13 -07:00
Marcel Holtmann
a21499ca01
Add basic support for emulating AT+CGATT inside AT server
2010-04-12 16:28:59 -07:00
Marcel Holtmann
4add05f4f0
Add basic support for emulating AT+CGREG inside AT server
2010-04-12 16:22:57 -07:00
Marcel Holtmann
5c1da8f6fc
Add basic support for emulating AT+CREG inside AT server
2010-04-12 16:19:34 -07:00
Marcel Holtmann
3187e46799
Reduce fake CFUN delay to 1 second to make testing simpler
2010-04-11 18:18:01 +02:00
Marcel Holtmann
4e16e48b24
Make CPIN handling of AT server a bit more compliant
2010-04-11 18:14:12 +02:00
Marcel Holtmann
0cafc1646c
Add really simple COPS support to AT command server
2010-04-11 18:10:50 +02:00
Marcel Holtmann
0b2014df05
Implement full CFUN handling for AT server
2010-04-11 17:36:34 +02:00
Zhenhua Zhang
82687aa58b
Add test implementation for CPBS
2010-03-31 08:39:47 -05:00
Zhenhua Zhang
ba35179687
Add test implementation to support SMS
2010-03-31 08:39:43 -05:00
Denis Kenzior
1f5e785901
Update test-server to the new API
2010-03-30 20:29:25 -05:00
Denis Kenzior
437c2d8ccf
Fix: Use VERSION define to generate CGMR response
2010-03-30 16:40:44 -05:00
Denis Kenzior
a77037c099
Add test implementation for CFUN
2010-03-30 15:14:42 -05:00
Denis Kenzior
6b33c5c4e6
Fix: Make sure g_print is followed by a newline
2010-03-30 14:38:06 -05:00
Denis Kenzior
45e6f5cb39
Add initial implementation of cgmr/cgmi/cgmm/cgsn
2010-03-30 14:37:42 -05:00
Denis Kenzior
11a8ccad0a
Fix: SO_REUSEADDR should be set before bind
2010-03-30 14:37:20 -05:00
Denis Kenzior
58e3d14651
Add stubs for test server commands
2010-03-30 12:23:11 -05:00
Denis Kenzior
d171a91ab3
Refactor: tty creation
2010-03-30 12:15:11 -05:00
Denis Kenzior
1f99435a42
Fix: Use SO_REUSEADDR in test_server
2010-03-24 19:34:33 -05:00
Denis Kenzior
32e329e7d3
Fix: Don't leak memory
2010-02-01 17:59:29 -06:00
Zhenhua Zhang
de154c6897
Add test case for GAtServer
...
To implement PTY, TCP, Unix socket example to create GAtServer
instance.
2010-02-01 17:59:28 -06:00