Skip to content

Commit

Permalink
renamed tcp_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Sep 26, 2017
1 parent faf05c6 commit bd06ded
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion burba/apps/hello-proto/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void client_handler(void)
{
while (sts < 0)
{
sts = tcp_connect(cfg->host, 3001);
sts = bocia_tcp_connect(cfg->host, 3001);
xtimer_usleep(1000000);
}
}
Expand Down
2 changes: 1 addition & 1 deletion burba/apps/tcp-simple-client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void client_handler(void) {
int16_t rc;
char cmd;

fd = tcp_connect(hostname, server_port);
fd = bocia_tcp_connect(hostname, server_port);
if(fd < 0) {
printf("connection failed: [%d]\n", fd);
return;
Expand Down
6 changes: 3 additions & 3 deletions burba/sys/bocia/bocia_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ int16_t service_endpoint(uint16_t port, kernel_pid_t *target_pid) {
}


int16_t tcp_connect(const char *hostname, uint16_t server_port) {
int16_t bocia_tcp_connect(const char *hostname, uint16_t server_port) {

SlSockAddrIn_t addr;
int iAddrSize;
int16_t fd;
int sts;
uint32_t server_ip;
DEBUG("tcp_connect %s:%d\n", hostname, server_port);
DEBUG("bocia_tcp_connect %s:%d\n", hostname, server_port);

/* Resolve HOST NAME/IP */
sts = sl_NetAppDnsGetHostByName((signed char *)hostname,
Expand Down Expand Up @@ -221,7 +221,7 @@ bocia_channel_t *bocia_tcp_init(Config* cfg) {
return 0;
}

fd = tcp_connect(cfg->host, cfg->port);
fd = bocia_tcp_connect(cfg->host, cfg->port);

if (fd < 0) {
return 0;
Expand Down

0 comments on commit bd06ded

Please sign in to comment.