Sponsored Content
Full Discussion: Connected or not connected !
Top Forums Programming Connected or not connected ! Post 302103812 by XinU* on Sunday 21st of January 2007 08:02:49 PM
Old 01-21-2007
hello ! Smilie

ok the solution to this is by means to implement an algorithm -a way- to take care of when the ports will open and when will close, so u will have track all the time of what is going on with the ports. there is no direct way to deal with it.

for example
in your approach
when a peer is connected u open 3 ports, make sure that when it disconnects, it frees up all the ports. no exept. so the u will have your n+1

as u may think there are numerous way to deal with this. Smilie
so the think u need to do is find "a way" in design lvl rather than digging out functions. Smilie

Last edited by XinU*; 01-21-2007 at 09:18 PM..
 

10 More Discussions You Might Find Interesting

1. AIX

How can I get Information about who is connected???

Hello, I'm new here and I come from Germany. At our AIX-ORACLE-System someone has deleted one important file and we'd like to find out who did this, next time. Is there any command to find out who is connected? I'm not trying to find out if it's root, etc., I'd like to get the DNS-Name or... (3 Replies)
Discussion started by: Huch
3 Replies

2. SCO

SCO connected Monitors

Hi all, we have 5 monitors connected to a SCO server using it's IP address(192.168.1.1), the server got busted, we have another similar server to connect the monitors to , how can i change the IP address of the new server to be (192.168.1.1), and connect the monitors to it. thanks, Marcel (1 Reply)
Discussion started by: marcelious
1 Replies

3. AIX

p550 connected to a HMC

Morning, I've installed a new p550 into a rack and connected it up to the HMC but the HMC cannot find it, I don't understand why it's not? Has anyone else had this problem before? Thanks Kees (4 Replies)
Discussion started by: KeesH
4 Replies

4. IP Networking

check whether connected to network

hi... can anyone pls suggest a few methods to check whether a computer is connected to any network, using the terminal, not GUI. thanks eskay (1 Reply)
Discussion started by: eskay_karthik
1 Replies

5. UNIX for Advanced & Expert Users

linux connected to as400

we have a as400 5rev4 and want to use a rhel server to use as a file server. We exported a drive on the rhel box and then mounted it on the as400. We can see the top directory in our mounted as400 directory but when we attempt access subdirectories we get a no matching object error. When we open... (2 Replies)
Discussion started by: javagair
2 Replies

6. AIX

How do I know to which storage I am connected

Hello everyone. We have a environment where we have DS8K storage and ES800 storage, the way to check to which storage the box is connected is using the LUN ID I get frm " pcmpath query device " command. for ex: 75CXX - DS8K storage 26860 - ES 800 Storage I was told to check... (4 Replies)
Discussion started by: nivaspIND
4 Replies

7. IP Networking

Am I Connected?

Be Gentle folks, I am a baby OpenSuSe 11.2 user :-) In windows Vista, there is a world in the systray when you are Internet connected and not just local. I have searched all over for a .RPM for the Network Manager or another packeg in Suse that can show me the same thing or something close. ... (0 Replies)
Discussion started by: donmaxwelliii
0 Replies

8. Shell Programming and Scripting

Mysql is not connected in php

Hi, The php is not able to connect into my mysql database. But i can able to connect by manually. I think that I have missed some points. Please guild for the same. Thanks, Mani (1 Reply)
Discussion started by: Mani_apr08
1 Replies

9. UNIX for Dummies Questions & Answers

Non Internet connected distribution

Hi all I've been a Debian user since solidly since about 1997 so I'm fairly experienced Linux user as a whole but unfortunately the monoculture has hit be hard recently. I'm working off a Laptop a lot of the time which spends up to 2-4 weeks without an Internet connection. A few weeks ago it... (1 Reply)
Discussion started by: pointyhat
1 Replies

10. IP Networking

Connected to IANA anyway, why?

May someone can answer this. Anytime I ignite my laptop to go online I see via etherape that I am connected to IANA as shown below. Is my provider redirecting me there, the cable under the sea, what is the reason for this? This happened with a pretty normal desktop PC, as well with my ancient... (2 Replies)
Discussion started by: 1in10
2 Replies
port_create(3C) 														   port_create(3C)

NAME
port_create - create a port SYNOPSIS
#include <port.h> int port_create(void); The port_create() function establishes a queue that multiplexes events from disjoint sources. Each source has a corresponding object type and source-specific mechanism for associating an object with a port. source object type association mechanism PORT_SOURCE_AIO struct aiocb aio_read(3RT), aio_write(3RT), lio_listio(3RT) PORT_SOURCE_FD file descriptor port_associate(3C) PORT_SOURCE_TIMER timer_t timer_create(3RT) PORT_SOURCE_USER uintptr_t port_send(3C) PORT_SOURCE_ALERT uintptr_t port_alert(3C) PORT_SOURCE_AIO events represent the completion of an asynchronous I/O transaction. An asynchronous I/O transaction is associated with a port by specifying SIGEV_PORT as its notification mechanism. See aio_read(3RT), aio_write(3RT), lio_listio(3RT), and aio.h(3HEAD) for details. PORT_SOURCE_FD events represent a transition in the poll(2) status of a given file descriptor. Once an event is delivered, the file descriptor is no longer associated with the port. A file descriptor is associated (or re-associated) with a port using the port_asso- ciate(3C) function. PORT_SOURCE_TIMER events represent one or more timer expirations for a given timer. A timer is associated with a port by specifying SIGEV_PORT as its notification mechanism. See timer_create(3RT) for more information. PORT_SOURCE_USER events represent user-defined events. These events are generated by port_send(3C) or port_sendn(3C). PORT_SOURCE_ALERT events indicate that the port itself is in alert mode. The mode of the port is changed with port_alert(3C).The port_cre- ate() function returns a file descriptor that represents a newly created port. The close(2) function destroys the port and frees all allo- cated resources. The port_get(3C) and port_getn(3C) functions retrieve events from a port. They ignore non retrievable events (non-own or non-shareable events). As a port is represented by a file descriptor, ports are shared between child and parent processes after fork(). Both can continue to as- sociate sources with the port, both can receive events from the port, and events associated with and/or generated by either process are retrievable in the other. Since some events might not have meaning in both parent and child, care must be taken when using ports after fork(). If a port is exported to other processes, the port is destroyed on last close. PORT_SOURCE_USER and PORT_SOURCE_ALERT events can be distributed across processes. PORT_SOURCE_FD events can only be shared between pro- cesses when child processes inherit opened file decriptors from the parent process. See fork(2). PORT_SOURCE_TIMER and PORT_SOURCE_AIO can- not be shared between processes. Upon succesful completion, the port_create() function returns a non-negative value, the port identifier. Otherwise, -1 is returned and errno is set to indicate the error. The port_create() function will fail if: EAGAIN The maximum allowable number of ports is currently open in the system. The maximum allowable number of ports is the minimum value of the project.max-port-ids resource control. See setrctl(2) and rctladm(1M) for information on using resource con- trols. EMFILE The process has too many open descriptors. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |all | +-----------------------------+-----------------------------+ |Availability |SUNWcsr, SUNWhea | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ rctladm(1M), close(2), exit(2), fork(2), poll(2), setrctl(2), aio_read(3RT), aio_write(3RT), aio.h(3HEAD), lio_listio(3RT), port_get(3C), timer_create(3RT), attributes(5) 22 Feb 2005 port_create(3C)
All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy