This commit is contained in:
parent
04223022a2
commit
bfef70f686
6 changed files with 59 additions and 53 deletions
|
@ -1,8 +1,12 @@
|
|||
#include <stdio.h>
|
||||
#include "servicepoint.h"
|
||||
|
||||
|
||||
int main(void) {
|
||||
//UdpConnection *connection = sp_udp_open_ipv4(172, 23, 42, 29, 2342);
|
||||
UdpConnection *connection = sp_udp_open_ipv4(127, 0, 0, 1, 2342);
|
||||
printf("test\n");
|
||||
|
||||
UdpSocket *connection = sp_udp_open_ipv4(172, 23, 42, 29, 2342);
|
||||
//UdpSocket *connection = sp_udp_open_ipv4(127, 0, 0, 1, 2342);
|
||||
if (connection == NULL)
|
||||
return 1;
|
||||
|
||||
|
@ -11,7 +15,7 @@ int main(void) {
|
|||
CharGrid *grid = sp_char_grid_new(5, 2);
|
||||
if (grid == NULL)
|
||||
return 1;
|
||||
|
||||
|
||||
sp_char_grid_set(grid, 0, 0, 'H');
|
||||
sp_char_grid_set(grid, 1, 0, 'e');
|
||||
sp_char_grid_set(grid, 2, 0, 'l');
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include "servicepoint.h"
|
||||
|
||||
int main(void) {
|
||||
// UdpConnection *connection = sp_udp_open_ipv4(172, 23, 42, 29, 2342);
|
||||
UdpConnection *connection = sp_udp_open_ipv4(127, 0, 0, 1, 2342);
|
||||
UdpSocket *connection = sp_udp_open_ipv4(172, 23, 42, 29, 2342);
|
||||
//UdpSocket *connection = sp_udp_open_ipv4(127, 0, 0, 1, 2342);
|
||||
if (connection == NULL)
|
||||
return -1;
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
//#include <stdarg.h>
|
||||
#include "servicepoint.h"
|
||||
//#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
UdpConnection *connection = sp_udp_open_ipv4(127, 0, 0, 1, 2342);
|
||||
UdpSocket *connection = sp_udp_open_ipv4(127, 0, 0, 1, 2342);
|
||||
if (connection == NULL)
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue