Need help regarding socket programming
hi
i have three machines "W", "D" and "K" on "W" and "D"
i have server programs which listens to port 9999
on "D" and "K" i am running client programs which connects to these servers (from "K" either to "W" or to "D" whichever is available and from "D" to "W")
can this situation ever lead to a BindException
... have three machines "W", "D" and "K" on "W" and "D"Huh? Your explaination doesn't make it clear to me.
Maybe you meant that you have three 'processes' on two different machines?
What kind of socket are you using - TCP or UDP?
Typically a bind exception occurs when the socket is already in use. This can occur if you kill a process and bring it up again. Or if two TCP socket servers on the same box try to start up (one of them will fail to grab the socket.)
Similar Messages
-
Need help writing host program using LabView.
Need help writing host program using LabView.
Hello,
I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
Any help would be appreciated.
Regards, George
George Dorian
Sutter Instruments
51 Digital DR.
Novato, CA 94949
USA
[email protected]
m
(415) 883-0128
FAX (415) 883-0572George may not answer you. He hasn't been online here for almost eight years.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice -
Need HELP regarding installinfg CR2008/Visual Advantage
I need help regarding installing CR2008/Visual Advantage. I had the evaluation copy of cr2008. My compnay purchased the CR2008 Visual Advantage. Upon calling your customer service, I was told that I had to UN-install the CR2008 evaluation copy then install the CR2008. I did the unstall HOWEVER, when I try to install the CR2008 that we purchased, i get the following error..HR
HR -2147024770-"c:\program files\business objects enterprise 12.0\win32_x86\REPORTCONVTOOL.DLL FAILED TO REGISTER"..
I get more that just that one...I have received this before and based upon this formum, i have delted the regristry in the following using regedit.exe
HKEY_LOCAL_MACHINE\SOFTWARE\BUSINESS OBJECT ;
HKEY_CURRENT_USER\SOFTWARE\BUSINESS OBJECTS..
Afeter i deleted the keys, I re-boot my pc and try to install the coftware again...BUT I GET THE SAME ERRORS...I have tryied this several times....what am i missing/not doing correctlyHi Shamish
Actually you were on the right track, i think you just have to increase PSAPTEMP a bit and you will be fine. 358 MB seems just too small, i suggest you increase it to at least 2GB.
1. what will be the difference in use of PSAPUNDO and PSAPTEMP while copy is running. ( i.e. what will be entered in PSAPUNDO and what will be filled in PSAPTEMP.)
PSAPTEMP: is needed for large sort operations, as mentioned when you have a select with an ORDER BY clause, or if you do join two tables. During the client copy some sorting might be needed for special tables (cluster tables) where data is stored sorted.
PSAPUNDO: undo space is only needed for DML (data manipulation), if data is changed undo is generated. This obviously is heavily the case during a client copy.
2. the target client already has a copy taken 1 month before. so I think while importing it first delete existing data and then copies the new one.
So If I first delete the target client and then take import on it; will it have advantage in regards of getiing UNDO or TEMP segments getting filled ?
Deleting the client first might help for the undo problem, but you already solved that. I cannot imagine, it will help for the PSAPTEMP issue. As i said i would just increase PSAPTEMP and restart the copy.
One more add: if you are doing the client copy with parallel processes, this will influence your requirements on temp and undo space, because of the concurrently running processes.
Best regards
Michael -
Is any one tell me that JAVA BEAN only used in WEB or also you in Desktop applications???? and aslo tell how i implement Java class and use JAVA BEAN. I need help regarding above matter
thanks in advance
Rehan MIrzaHere is a good link that indicate that JavaBean is not only for applets
http://java.sun.com/docs/books/tutorial/javabeans/whatis/beanDefinition.html
quote:
The JavaBeans API makes it possible to write component software in the Java programming language. Components are self-contained, reusable software units that can be visually composed into composite components, applets, applications, and servlets using visual application builder tools. JavaBean components are known as Beans.
Francois -
Need Help Regarding Enabling The Matrix
Hi All,
We have got one user form and we have got one choose from list and one matrix, on click of choose from list the value will be displayed in the text box and at the same time matrix should get enabled. But it;s not happening in our case. The value is coming in the text box through choose from list but matrix is not getting enabled. We are able to change the back ground color of the matrix, make first column invisible and all but not able to enable the matrix. We need help regarding this one.
Regards,
JayanthHey first bind the columns of matrix to any user datasource
and then you can enter any thing into your matrix
following code may help
suppose you have one column
oForm = SBO_Application.Forms.Item("URFRM")
oUserDataSource = oForm.DataSources.UserDataSources.Add("URDSName",
SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
oMatrix=oForm.Item("URMATRX")
oMatrix = oItem.Specific
oColumns = oMatrix.Columns
oColumn = oColumns.Item("URCOLName")
oColumn.DataBind.SetBound(True, "", "URDSName")
oMatrix.Addrow()
hope this will help
additionally you can look at this sample
.....SAP\SAP Business One SDK\Samples\COM UI\VB.NET\06.MatrixAndDataSources -
I need help regarding setting my mail accounts on macbook pro
I need help regarding resetting my mail accounts on macbook pro
What kind of accounts do you need to reset? IMAP or POP accounts using one of the many web-based messaging systems? An Exchange server account? Were they working and now just not working any longer?
You're going to have to be a little more specific in what you need...
Clinton -
I need help regarding installation of Netweaver 2004s
Hi,
I need help regarding installation of Netweaver. When ever i am running setup.exe, i am getting a page asking for local host and port number as 21212. When I enter my local host name and the port number as 21200 i am getting the error message given below and the installation stops. I am not able to proceed further. can any one help me what i need to do here. I created MS lookupadapter and entered my static ip address in 'host' file after 127.0.0.1 localhost and i disabled port number 3201 in system file. I verified system variables also. Everything is fine. I dont have firewall or antivirus installed in my system. Is there any thing else i need to do. please help me. Thanks in advance.
" SAPinst is getting started.
Please be patient ...
starting gui server process:
sapinstport: 21200
guiport : 21212
guistart : true
command : "C:\j2sdk1.4.2_09/bin\javaw.exe" -cp "C:/DOCUME1/ADMINI1/LOCALS1/Temp/sapinst_exe.6496.1162659801\jar\instgui.jar;C:/DOCUME1/ADMINI1/LOCALS1/Temp/sapinst_exe.6496.1162659801\jar\inqmyxml.jar" -Xmx256M -Dsun.java2d.noddraw=true SDTServer config=jar:sdtserver.xml guiport=21212 sapinsthost=localhost sapinstport=21200 guistart=true
load resource pool G:\SAP\Softwares\IDES mySAP2005\51031898\IM_WINDOWS_I386\resourcepool.xml
guiengine: no GUI connected; waiting for a connection on host (local hostname) , port 21200 to continue with the installation
guiengine: login in process...............................
guiengine: login timeout; the client was unable to establish a valid connection
Exit status of child: 1"
Regards,
Farooq Shaik.Hi
Run the sapinst.exe with the port 21212.This port 21212 is the default port used during the installation of netweaver. -
Need Help regarding text Output
Dear gurus.
I need help regarding formatting of a text.
I want to format a employee sub group text.
im getting a text workers (7) from a table t503t having field ptext.
i want to show only (7) in the output not the whole text how can i do this ?
Please help
regards
Saad.NisarDATA: BEGIN OF itab_odoe OCCURS 0,
department_text LIKE t527x-orgtx,"Holds the short text for department
department_no LIKE pernr-orgeh,
pernr LIKE pernr-pernr,
ename LIKE pernr-ename,
grade like t503t-ptext, "THIS AREA GET ME TEXT OF EMPLOYEE SUBGROUP"
* department_text LIKE t527x-orgtx,"Holds the short text for department
current_year LIKE sy-datum,
wt0001 LIKE q0008-betrg,"Basic Pay
wt1101 LIKE q0008-betrg," COLA
wt3002 LIKE p0015-betrg,"Overtime
per_basic type p DECIMALS 2,"Overtime percentage on basic
per_basic_sum type p decimals 2,"Overtime Sum Division
overtime_sum LIKE p0015-betrg,"holds sum of overtime
basic_sum like q0008-betrg,"holds sum of basic
END OF itab_odoe.
Im using the select statement to get the employee subgroup from the table
select single ptext
from t503t
into itab_odoe-grade
where persk eq pernr-persk
AND SPRSL eq 'EN'.
now in itab_odoe-grade the values comes is Workers (7) , Snr Mgt (M3)
i want to show only the text in Brackets. -
I need help regarding measurement of "time domain parameters of Heart rate variability" using labview.
I am using Labview 8 ... I need to develop a software to accquire the ECG data (simulated enironment ) and compute the time domain parameters of Heart rate variability like "SDNN, SDANN...etc". Can some 1 plllzzzz help me out.Plzz help me if u can.Thanx in advance.Hi Andy,
Thanx for responding. The input is from a text file. SDNN, SDANN,etc are the timedomain parameters of heart rate variability.
SDNN: the standard deviation of the NN or RR interval i.e. the square root of variance.
SDANN:the standard deviation of the averageNN interval calculated over short periods, usually 5 min,which is an estimate of the changes in heart rate due tocycles longer than 5 min
SDNN index, the meanof the 5-min standard deviation of the NN intervalcalculated over 24 h,
RMSSD: the square root ofthe mean squared differences of successive NN intervals
NN50: the number of interval differences of successiveNN intervals greater than 50 ms, and
pNN50 the proportionderived by dividing NN50 by the total numberof NN intervals.
The problem is dat I am a fresher to the world of Labview. I have jus recently started working on it. Can u please suggest me some some idea as soon as possible.
As i said I have the ECG data in the form of text files..I need to create sort of GUI to calculate the time domain parmeters....I need help urgently. Plzzz help me if u can. If u have and .vi example to calculate the RR interval plzz send it to me ASAP.
Thanku -
em user of iphone 3gs os 6.1.6
Yesterday i restore ma iphone
after that em Unable to install ibook in ma iphone its say me that u need os 7 ...
need help regarding this issue.... what i do is there any alternative app ...?Hey Seungly,
I've realized that my computer runs fine UNLESS I turn the AirPort on to connect to the Internet. The moment I click "Turn AirPort On," the "You need to restart your computer" screen immediately pops up. Is there any connection between AirPort and my problem?
That could very easily be the case, a bad Airport card. Look at this recent post:
http://discussions.apple.com/thread.jspa?messageID=7960754�
John diagnosed it from the panic log.
Does yours say something similar?
Richard -
Need help regarding image scanning from scanner and resizing it...
Hi,
I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!
Thanks,
Avinash.
Edited by: Kalakonda on Jul 24, 2009 8:08 AMKalakonda wrote:
I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!So what you are doing is you have a Scanner (hardware: like an HP flatbed scanner) attached to a server that you want to use as a scanning station? Is this the senario that you are talking about? -
need help regarding may ipad, i cant access my ipad, need help regarding may ipad, i cant access my ipad
Can you be little more specific?
-
Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.
I have an appointment with a director on Tuesday. I want to demo iTunes U. Problem is I have never used it before and have no idea how to set it up and even if I should sign up.
Please help any ideas regarding iTunes U and how I should direct the meeting tomorrow.
Please please post here.
Thanks
TiaanGreetings fcit@!A,
After reviewing your post, it sounds like you are not able to select none as your payment type. I would recommend that you read this article, it may be able to help the issue.
Why can’t I select None when I edit my Apple ID payment information? - Apple Support
Thanks for using Apple Support Communities.
Take care,
Mario -
HELP : Convert socket programming from Ipv4 to IPv6
Hi all,
I need help in converting my Ipv4 socket programing to Ipv6. How can I do this? I already have an Ipv4 socket programming that is working but when I tried to convert it to Ipv6 it doesn't work .
this is my Ipv4 socket programming :
DatagramPacket sendPacket;
DatagramSocket sock;
ip = jtfDIP.getText().trim();
try{
sock = new DatagramSocket();
add = InetAddress.getByName(ip);
sendPacket = new DatagramPacket(buf,buf.length,add,port);
Please help me. How can I convert this to Ipv6. Thank you.Socket sock = new Socket("host");
or
Socket sock = new Socket("192.168.1.1");
or
Socket sock = new Socket("www.host.com");
or
Socket sock = new Socket("hhhh.hhhh.hhhh.hhhh");
Get it? Just use whatever host, domain name, or IP you need, the underlying native code does the work - you'll never need to do anything, for the most part. -
Need help regarding converting text to Lines and Arcs.
In my program i have text.Lets say the text is JAVA.
Now i need to group that text(JAVA) in the form of line and arcs.
Its like organizing lines and arcs and make it looks like a text(JAVA).
Can we have such a possibilities to do that?
Please help regarding this!!
Thanks in Advance.
Boopathy.Have a look at TextLayout class (http://java.sun.com/javase/6/docs/api/java/awt/font/TextLayout.html)
Graphics2D g = ...;
Point2D loc = ...;
Font font = Font.getFont("Helvetica-bold-italic");
FontRenderContext frc = g.getFontRenderContext();
TextLayout layout = new TextLayout("This is a string", font, frc);
Shape shape = layout.getOutline(null);
Edited by: AlexeyUshakov on Sep 29, 2008 8:46 AM
Maybe you are looking for
-
The eyedropper tool does not work with a hue saturation adjustment layer
I am using PS CC 2014, and the problem I am having is that when I want to use the eyedropper tool to adjust the colour range affected by a Hue/Saturation adjustment layer, rather than selecting the colour in the Properties window for the adjustment l
-
My iTunes is just not working! Please help!
About a week ago, my iTunes just stopped working. When I tried to open it, I got that stupid Windoze message that iTunes had encountered a problem and had to close. And now I can't get it to work. I completely uninstalled both iTunes and QT and did a
-
I want to use quickbooks and assisted payroll on a Mac mini. Anyone else out there using it successfully? I see it suggests bootcamp- does it work?
-
Question # 3 about the HDMI-DVI cable
OK...My older DVD player is working just fine with the component video cable. Now let's suppose that DVD player eventually stops working and I replace it with a new one. On the newer DVD players, does the HDMI-DVI cable take the place of the componen
-
Hi,, We wants to clear out the stock in SAP because they are the old stock and actually there are no stocks for the materials in physical warehouse. It is just in the system showing those materials have stocks; 62 pcs. So we wants to clear those 62 p