135,7 → 135,7 |
return EOK; |
} |
|
int socket_create( socket_cores_ref local_sockets, int app_phone, int * socket_id ){ |
int socket_create( socket_cores_ref local_sockets, int app_phone, void * specific_data, int * socket_id ){ |
ERROR_DECLARE; |
|
socket_core_ref socket; |
147,8 → 147,7 |
// initialize |
socket->phone = app_phone; |
socket->port = -1; |
socket->device_id = -1; |
socket->peer_addr = NULL; |
socket->specific_data = specific_data; |
if( ERROR_OCCURRED( dyn_fifo_initialize( & socket->received, SOCKET_INITIAL_RECEIVED_SIZE ))){ |
free( socket ); |
return ERROR_CODE; |