Socket number allocation in ascending order
We have a C++ application developped for solaris platform, which(acts as a Gateway) accepts the TCP requests and forward the requests to UDP server and vice versa.
When there is new request from TCP, the new udp (client)socket connection is created to the UDP server and forwards the request. The client socket connection is closed after receiving the complete response for the request.
The socket descriptor is allocated when we call the socket system call, and the next available socket descriptor will be assigned.
My question is, can we tune any of the OS parameters to allocate the socket descriptors in a ascending order.
On Unix (including Solaris) the socket descriptors are file descriptors. It would make wonder if not the next free file descriptor was used. But why does it matter?
Similar Messages
-
Why character is sorted before number in the ascending order?
By specify sorting by as ascending, the result will be
aaa
bbb
111
222
By specify sorting by as descending, the result will be
222
111
bbb
aaa
and the expected result(ascending), which is the one normally adopted by sql is
111
222
aaa
bbb
any idea to achieve this?Try This:
<?sort:SiteName;lang='no'?>
or
<?sort:string-length(substring-before ('01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
,substring(SiteName,1,1))) ;'ascending';data-type='number'?>
or
<?sort:string-length(substring-before ('01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
,substring(SiteName,1,1))) ;'descending';data-type='number'?> -
Batches not appearing in ascending order with Pallet Number! Please Help!
Hi Experts,
I have a problem regarding Pallets. When I am doing Delivery in VL01n at the time of bacth determination, 1 pallet number is assigned to two batches which are appearing in descending order and i want them in ascending order. Also I want to know that where it has all the assignment of pallets.
Points will be awarded if the answer is helpful!
Thanks in advanceHi Vishal ,
Thanks for the response..
Have checked it.. Update Doc. Flow check was there.. But still i am receiving the same issue..
Some time its creating entry in /DBM/ORD_DOCFLOW. and sometimes its not.. it works weird..
Please advise.
Regards,
Mathan R. -
How To: Sort Numbers in Ascending Order in a Generated List
Greetings! How do I set up a Generated List of Paragraphs so that it sorts in true ascending order? What I want is:
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.10
I have tried every trick I can think of with the sort order listed on the reference page. But all I can get is something that sorts by individual number (ignoring the numeric value) like:
1.1
1.10
1.11
1.2
1.20
1.21
1.3
Any help is much appreciated!Hello there, Michael! Thanks so much for looking at my post! Alas, the LOP will not work. I should have explained more, but it was so complicated I thought folks would give up reading.
Here's the best I can render it without getting permission to share a good example document. I do not blame anyone if it's too cumbersome or convoluted to wade through...
This is a requirements document which has sort of a "legal" tinge to it--as the document evolves we must maintain traceability for individual requirements. This means, for example:
Version 1 - I have requirements 1 and 2.
Version 2 - I need to add a new requirement, which should appear before requirement 1 in the document. Even though it comes before requirement 1 in the document, numerically it will be requirement 3 and requirement 1 will remain requirement 1.
Version 3 - I need to remove requirement 2. Even though I now have only 2 requirements, their numbers will not change (they remain requirements 1 and 3, appearing in reverse order).
Version 4 - I need to move requirement 3 to be after requirement 1. Again, the requirements keep their original number, even though their position has changed and there is no longer a "requirement 2" number in use.
Originally, I told the team (I'm doing this for a different dept), that they would have to hand-number requirements, which they did for a while. But that was getting very cumbersome, and the scenarios above are limited to one or two occurrences per document. So I created an auto-number sequence for them to use in the initial version and added a little smoke-and-mirrors work process to take care of changes in later versions. The last bit of chicanery I cannot get to work is the index...
Even if there are no changes to the requirements after the initial version, the index still does not sort in ascending numeric order. It was working with the hand-numbered requirements because they were using leading zeros. But without being able to include leading zeros in the auto-numbering formats (I tried the "use a zero as a tab leader" solution and like to have thrown my new monitor out of the window), I cannot find a solution.
Or rather, I think the solution is "you have to hand-number requirements".
For anyone who has made it this far, I truly appreciate your time and patience!
SFT -
I want to know making a program in ascending order....
hi to all...happy holidays
i have a code of mine but it doesn't work, pls help me...
class Sorting{
void sort(int[]a){
int i,j;
int temp;
for (i=0;i<a.length-1;i++)
for (j=i+1;j<a.length;j++)
if (a[j]<a)
temp=a[j];
a[j]=a[i];
a[i]=temp;
that code is for 500 numbers i try to be in ascending order but i doesnt work...
i want it also that when I type the number it says that these are the numbers i type....Can someone help with a sample code even just up to 11 numbers it accept and displays the number i type first before the output in ascending order....
Thanks a lot for consideration and help....How about:public class Hello {
public static void main(String[] args) {
Hello hi = new Hello();
int[] b = {5,3,7,2,1};
hi.sort(b);
for (int k=0; k < b.length; k++)
System.out.println(b[k]);
void sort(int[] a){
int temp;
for (int i=0; i < a.length-1; i++) {
for (int j=i+1; j < a.length; j++) {
if (a[j] < a) {
temp=a[j];
a[j]=a[i];
a[i]=temp; -
Xsl:selecting nodes in ascending order
Hi,
Could anybody please answer this query.
I have the following xml
<Root>
<Child>
<number>1</number>
</Child>
<Child>
<number>3</number>
</Child>
<Child>
<number>4</number>
</Child>
<Child>
<number>6</number>
</Child>
<Child>
<number>7</number>
</Child>
<Child>
<number>10</number>
</Child>
</Root>
Now from xsl i need to select Child nodes in ascending order based on the <number> tag within <Child> node.
Also at max there will be 10 child nodes,As the loop goes and retrives the nodes,I need to know which nodes
have gone missing as i need to do some thing if a node is missing {For example in the above xml Child nodes
with number 2,5,8,9 are missing.
Is there any way I can do this?
Thanks and Regards,
DeepakThere's <xsl:sort> if you want to process a node set in ascending sequence. And there's the preceding-sibling axis if you want to look at a previous sibling node. You would want to test whether the preceding sibling's number element was one less than the current node's number element.
-
Using TreeSet, how to list in ascending order....
hi i need to use TreeSet class
and i need to list the list of books in order of ISBN number
and also in order of author..
both in ascending order..
ivebeen thinking for long long time but..can't figure it out..
please help me guys thanksThe Java� Tutorial - Object Ordering
Making Java Objects Comparable -
Hi Friends,
I have a table xxx and it has two columns col1 and col2 and below is the data for these columns.
Col1 Col2
111 5,6,9,2,1
211 10,12,8,9
311 6,7,8,1,2,3,4
Below is the required output;
Col1 Col2
111 1,2,5,6,9
211 8,9,10,12
311 1,2,3,4,6,7,8
I want the column level data in the ascending order. Please help me on this.
Regards,
Williams
Edited by: Williams on Sep 24, 2012 7:11 PMHi, Sankar,
Here's one way:
(1) Split each string into multiple rows, one row for each item in the delimited list. (This is how the data should be stored in the frist place.) See {message:id=10095021}
(2) Use the analytic ROW_NUMEBR (or DENSE_RANK, depending on your requirements) to number the rows 1, 2, 3, ..., using "PARTITION BY col1" to get a separate set of numbers for each value of col1.
(3) Use String Aggregation to combine the rows into one row per col1. See
http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
If you get stuck, post your best attempt, along with a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
Simplify the problem as much as possible. Remove all tables and columns that play no role in this problem.
Always say which version of Oracle you're using (for example, 11.2.0.2.0).
See the forum FAQ {message:id=9360002} -
Sorting an array of integers into ascending order
Today I decided to blow the cobwebs off my old laptop and see what I could remember from my Java days.
As a task for myself to see what I could remember, I decided to try and write a program that does the following:
- Declares an array of 4 integers
- Sorts the array into ascending order, from lowest to highest.
- Prints on screen the sorted array.
After an hour or so I finally cracked it, and ended up with a working program. Here she is:
public class Sorting_arrays_1
public static void main()
int [] array = {4,3,7,1};
//A variable used to help with swopping values
int temporary;
//finds the smallest number out of elements 0, 1, 2, and 3 of the array, then moves it to position 0
for (int count = 0; count<array.length;count++)
int smallestNumber = array[0];
if (array[count] < smallestNumber)
smallestNumber = array[count];
temporary = array[0];
array[0]=array[count];
array[count]=temporary;
//finds the smallest number out of elements 1, 2, and 3 of the array, then moves it to position 1
for (int count = 1; count<array.length;count++)
int smallestNumber = array[1];
if (array[count] < smallestNumber)
smallestNumber = array[count];
temporary = array[1];
array[1]=array[count];
array[count]=temporary;
//finds the smallest number out of elements 2 and 3 of the array, then moves it to position 2
for (int count = 2; count<array.length;count++)
int smallestNumber=array[2];
if (array[count] < smallestNumber)
smallestNumber = array[count];
temporary = array[2];
array[2]=array[count];
array[count]=temporary;
//prints the array in ascending order
for (int count=0; count<array.length;count++)
System.out.print(array[count] + " ");
}Could this code be simplified though? Maybe with a for loop?
I mean, it does the job, but it looks so clumbsy and inefficient... Imagine how much code I would need if I wanted to sort 1000 numbers..Use bubble sort if u want a quick fix
public static void bubbleSort(int [] a)
for(int i=0; i<a.length-1; i++)
for(int j=0; j<a.length-1-i; j++)
if(a[j]>a[j+1])
int temp = a[j];
a[j]=a[j+1];
a[j+1]=temp;
Or use Merge sort if u want better run time... ie.(N log N) -
Report for Asset number and its Purahcse order number
Hello Friends,
Please give me details of report for Asset number and its Purchase order number .
Regards
Nilesh Vakilhi,
GO to ME2N...
use SHIFT + F4..
there check for the acc. assign cata. field and input the asset and execute..
Regards
Priyanka.P -
Limit the number of open production order
Dear PP experts,
I am working on discrete scenario where client want to limit the number of open production order per work center. The more elaboration is like, for one work center the only specific number of production should remain open (e.g. 5 production order in assembly shop) when user is trying to open 6th production order system should restrict that.
Does any standard functionality available in system or needs development?
Regards,
ShekharDear,
You can do it with avilability check for materail and capacity.
In OPJK do the for your production order type as no release if materail and capacity i missing.
Hope clear to you.
Regards,
R.Brahmankar -
Accounting document number display in purchase order history tab
Is it possible to display the accounting document number in the purchase order history tab? Currently it is displaying material document number for Good receipts and LIV (logistic invoice verification) document number for Invoice receipts against material document number colmn. We can get to the accounting document number by drilling into the LIV document number. We are looking for a way to display the accounting document number in the display screen of purchase order history tab instead of drilling down.
Is there an option to display accounting document number of the MIRO posting in ME23N , purchase order history tab?
Truly appreciate any help in this regard.Thanks for the response.
-
Credit Card number entered CRM sales order is not appearing in R3 Sales ord
Hi,
We are entering our Sales orders in CRM which are gtting replicated to SAP R3,In the credit card scenario ,In some sales orders entered in CRM,where the Credit card numer has been entered,In some cases,the card numer is not appearing in R3 Sales order either in the overview screen or Payment card tab,due to ehich most of the times these cards fail authorization .
Kindly let me know as to what could be the reasons as to why the card numer seen in CRM is not appearing in SAP R3,sales order?
Appreciate your help on this.
Regards
Mohammed RoshanHi All,
Looking forward to your valuable inputs on this as to how and why Credit Card number entered CRM sales order iwould not appear in R3 Sales order?
Regards
Mohammed Roshan -
Number of times sales order./delivery blocked
Hi,
Do we have a report which gives details about number of times sales order/delivery blocked because of credit management.
Or there is any work around for getting the same?
I request you to kindly suggest your valuable inputs.
Regards,
Phani Prasad.Hi Balaji,
Thanks for your reply.Please find the below example.
Customer A was blocked for credit limit on 01.01.2011 and subsequently released using VKM3.
Again the same customer was blocked on 02.01.2011 and once again released.
How do I know the number of times Customer A was blocked and released for a given period.(2 times in the above example for that period).
Please explain.
Regards,
Phani Prasad. -
Hi,
reference to subject we need a restriction that user can not put different PO reference within an Order. One Sale Order should have one PO reference at Header and Line's of the sales order. Currently what is our issue that all the sales order are created by Quotes from quoting module. Whatever the line items come from quotes into sales order having no PO Number reference with them but when user completing the sales order user puts the PO reference at Sales Order Header which can not be linked or passed on those line items who captured from quotation. Due to this PO reference value difference between Lines and Header system generates multiple AR invoices based on unique PO Number references within an order.
we need single PO reference per sales order. How can we restrict this if line level PO number reference is different from Header PO number reference that user can not proceed further?
Regards
Kaleem A. BhattiDear Zakir,
Thanks a lot for your favorable response. The query is solved now by defaulting rules.
Regards
Kaleem A. Bhatti
Maybe you are looking for
-
INSERTING DATA INTO A SQL SERVER 2005 TABLE, WHICH HAS A IDENTITY COLUMN
Hi All, I have to insert the data into a SQL SERVER 2005 Database table. I am able to insert the data into a normal SQL Server table. When I am trying to insert the data into a SQL Server table, which has a identity column (i.e. auto increment column
-
Intercompany transaction does not exists
Hi, I am have posted entry in F-02 and also i have asigned a new company code to the transaction and also document got created. now i need to reverse the document for the reversal reason 1 in T.Code FBU8. I am getting error message " Intercompany Tra
-
I upgraded to DW CS3 and now when I try to upload a flv file, it says it can't complete it and the file isn't updated. I go back to my old version of DR8 and it works just fine. When I synchronize in CS3 it will tel me that files need to be updated,
-
Satrtup.batch file in SUM
Hello, I have to run sum tool for that I am running startup.bat file but it opens and disappears. Please guide me. Thanks and Regards, Akshay
-
Customization error during document reversal
Hi, I am getting the following error: "Local Currency of cons unit C300 is not maintained" Does anyone know where in SPRO , i have to customize? Thanks