Sponsored Content
Full Discussion: socket programming doubt
Top Forums UNIX for Advanced & Expert Users socket programming doubt Post 302241738 by kic on Tuesday 30th of September 2008 05:38:33 AM
Old 09-30-2008
socket programming doubt

can we create multiple sockets in a machine with different ip addresses and all port listen to one single port ????

i hav one tool which creates virtual interface and i m using that to create multiple ip addresses in a linux machine and i use thos eip addresses to create multiple sockets and all ports shld listen to a single poer ... i got an error like (98, Address already in use ) . i can able to listen those sockets in differnt port with out any prob ...wat could be issue ..can anyone sole this issue
 

10 More Discussions You Might Find Interesting

1. Programming

Socket Programming

Dear Reader, Is there any way to check up socket status other than 'netstatus ' Thanks in advance, (1 Reply)
Discussion started by: joseph_shibu
1 Replies

2. Programming

Socket Programming socket

Hello, I actually try to make client-server program. I'm using SCO OpenServer Release 5.0.0 and when I try to compile my code (by TELNET) I've got this error : I'm just using this simple code : and I get the same error if I use : If someone can help me, Thanks (2 Replies)
Discussion started by: soshell
2 Replies

3. IP Networking

socket programming

my system is a stand alone system... i want to try doing socket porgramming..ihave heard that this is usually done during testing... how can i do that....? (6 Replies)
Discussion started by: damn_bkb
6 Replies

4. IP Networking

socket programming

Hello Everyone Iam working on tcp/ip programming.with some time interval server has to send data.client has to close the connection and to open the connection between the time interval.this is the scenario when iam closing the connection in client side the connection terminates.how to... (1 Reply)
Discussion started by: sureshvaikuntam
1 Replies

5. UNIX for Advanced & Expert Users

socket programming

can we send udp message to a destination ip address .. without having an ip address configured in our machine using recvfrom ? (2 Replies)
Discussion started by: Gopi Krishna P
2 Replies

6. UNIX for Dummies Questions & Answers

hi i need help with socket programming

in socket programming how can i : Create for example 3 blank files, namely: server, client, network •Server: act as servers/provider, will receive all requests from different client •Client: requesters •Network: middle-layer of communication between server & client any tips or... (6 Replies)
Discussion started by: kedah160
6 Replies

7. Programming

help with socket programming in c

i'm doing a simple program in socket programming on c i have server that can handle 2clients in a single machine i'm running ubuntu linux so i got it work but the probelm when clients send a message the server will echo it but i cant distinguish which client send the message client 1 or client... (7 Replies)
Discussion started by: kedah160
7 Replies

8. UNIX for Advanced & Expert Users

Socket programming

my socket program is not working with larger port numbers like more than 60000 , any reason why ? (4 Replies)
Discussion started by: Gopi Krishna P
4 Replies

9. Programming

Socket programming doubt

I am aware that TCP sockets are stream based and a single write may not send all the data. Is this the case with recv as well ? I am in process of deciding a protocol to handle communication. I wanted some tips as to handle transactions. The data sent / received would be fixed length. Hence... (5 Replies)
Discussion started by: _korg
5 Replies

10. Ubuntu

Socket Programming

HI Can anyone provide me with codes for file transfer server to client or vice versa? Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming. Thanks (1 Reply)
Discussion started by: mayhemtrigger
1 Replies
sctp_darn(1)						      General Commands Manual						      sctp_darn(1)

NAME
sctp_darn - Send and receive messages via SCTP SYNOPSIS
sctp_darn -H local_address -P local_port [-h remote_host] [-p remote_port] -l|s DESCRIPTION
This is a userspace test application for the SCTP Linux kernel reference implementation state machine. It is vaguely inspired by Stevens' program "sock". It has the limited ability to send messages and to listen for messages sent via SCTP. OPTIONS
-H, --local local_address specify one of the local addresses -P, --local-port local_port specify the port number for local addresses -h, --remote remote_address specify the peer address -p, --remote-port remote_port specify the port number for the peer address -l, --listen print messages received from the peer -s, --send send messages to the peer -B, --bindx-add address add the specified address(es) as additional bind addresses to the local socket. Multiple addresses can be specified by this argument multiple times. For example, '-B 10.0.0.1 -B 20.0.0.2'. -b, --bindx-rem address remove the specified address(es) from the bind addresses of the local socket. Multiple addresses can be specified by this argument multiple times. For example, '-b 10.0.0.1 -b 20.0.0.2'. -I use the interactive mode. -i setup the specified number of endpoints by using the specified local host (-H) and local port (-P). The port number will be incre- mented by one for each additional endpoint. All of these endpoints will be listening. If a remote host (-h) and a remote port are also specified, the first endpoint will start sending fixed sized messages to the remote host. -m size specify the sockopt sndbuf/rcvbuf size. -n set the socket(s) to be in the non-blocking mode. collect messages from stdin and deliver them to the peer --use-poll use system call poll() for polling among the number of endpoints specified by the -i option. Without this option, select() would be used as default. -t use SOCK_STREAM tcp-style sockets. -z size specify the message size to be sent. The default message size generated would be 16K. --interface ifname select interface for sin6_scope_id. AUTHOR
Michael Biebl <biebl@debian.org> sctp_darn(1)
All times are GMT -4. The time now is 03:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy