Changeset fab2746 in mainline for uspace/srv/net/tcp


Ignore:
Timestamp:
2015-04-08T21:25:30Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
99ea91b2
Parents:
ba0eac5
Message:

New transport layer API. Only UDP implemented.

Location:
uspace/srv/net/tcp
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/Makefile

    rba0eac5 rfab2746  
    2828
    2929USPACE_PREFIX = ../../..
    30 LIBS = $(LIBNET_PREFIX)/libnet.a
    31 EXTRA_CFLAGS = -I$(LIBNET_PREFIX)/include
    3230BINARY = tcp
    3331
     
    4038        segment.c \
    4139        seq_no.c \
    42         sock.c \
    4340        tcp.c \
    4441        test.c \
  • uspace/srv/net/tcp/tcp.c

    rba0eac5 rfab2746  
    4242#include <io/log.h>
    4343#include <stdio.h>
     44#include <stdlib.h>
    4445#include <task.h>
    4546
     
    4748#include "pdu.h"
    4849#include "rqueue.h"
    49 #include "sock.h"
    5050#include "std.h"
    5151#include "tcp.h"
     
    192192        }
    193193
    194         rc = tcp_sock_init();
    195         if (rc != EOK) {
    196                 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing socket service.");
    197                 return ENOENT;
    198         }
     194//      rc = tcp_sock_init();
     195//      if (rc != EOK) {
     196//              log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing socket service.");
     197//              return ENOENT;
     198//      }
    199199
    200200        return EOK;
  • uspace/srv/net/tcp/tcp_type.h

    rba0eac5 rfab2746  
    4141#include <fibril.h>
    4242#include <fibril_synch.h>
    43 #include <socket_core.h>
    4443#include <sys/types.h>
    4544#include <inet/addr.h>
     
    321320typedef struct {
    322321        async_sess_t *sess;
    323         socket_cores_t sockets;
     322//      socket_cores_t sockets;
    324323} tcp_client_t;
    325324
     
    330329        fibril_mutex_t lock;
    331330        /** Socket core */
    332         socket_core_t *sock_core;
     331//      socket_core_t *sock_core;
    333332        /** Client */
    334333        tcp_client_t *client;
Note: See TracChangeset for help on using the changeset viewer.