Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3684 → Rev 3685

/branches/network/uspace/srv/net/tcp/tcp.c
53,14 → 53,14
int tcp_initialize( void ){
ERROR_DECLARE;
 
ipcarg_t arg1, arg2;
/* ipcarg_t arg1, arg2;
 
// printf( "TCP - testing to send IP:\t" );
// ERROR_PROPAGATE( ip_message( NET_IP_ECHO, 12, 34, NULL, & arg1, & arg2, NULL ));
// if(( arg1 != 12 ) || ( arg2 != 34 )) return EINVAL;
// printf( "OK\n" );
 
// ERROR_PROPAGATE( ip_message( NET_IP_TCP_REGISTER, NULL, NULL, NULL, NULL, NULL, NULL ));
printf( "\nTCP - testing to send IP:\t" );
ERROR_PROPAGATE( ip_message( NET_IP_ECHO, 12, 34, NULL, & arg1, & arg2, NULL ));
if(( arg1 != 12 ) || ( arg2 != 34 )) return EINVAL;
printf( "OK\n" );
*/
ERROR_PROPAGATE( ip_message( NET_IP_TCP_REGISTER, SERVICE_TCP, NULL, NULL, NULL, NULL, NULL ));
return EOK;
}
 
70,7 → 70,6
 
int tcp_message( ipc_callid_t callid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, ipcarg_t * result1, ipcarg_t * result2, ipcarg_t * result3 ){
switch( method ){
// case IPC_M_CONNECT_ME_TO:
case IPC_M_PHONE_HUNGUP:
return EOK;
}
/branches/network/uspace/srv/net/tcp/tcp.h
49,7 → 49,7
 
typedef struct tcp_globals tcp_globals_t;
 
struct tcp_globals{
struct tcp_globals{
int ip_phone;
int networking_phone;
};