Help!!! - how to check a request on a socket(or a packet) ?
how can i possibly check request on an incoming socket(or a packet) ?
[how can i ckeck if i asked a partiqulare socket(or a packet) to be recieved from a specific IP?]
I know what you're asking now. You can't unless you pipe all of your incoming connections THROUGH your java program. There is NO way to write a pure java application that just spies on what ports are open on your system, and where they are connected. No matter what you do, you have to either rewrite the networking of the OS or find a way to communicate with it, either way you're gonna need JNI or just straight C/C++. Posted the question over and over again is not going to get you a better answer.
Similar Messages
-
Help--how to check the exact time?
Pls help me:
How to check the accurate down-time when the Sun machine (with solaris 8 sparc) abnomally shutdown (eg. power failure)?
or
Is there any way to detect the exact time when I shutdown the Sun machine ?
thanks.check /var/adm/messages ; uptime ; last ..
there are quite a few method u can use -
Help,how to check a input type?
Dear all experts,
in the selection-screen,user need to key in the vendor consignment code ( vdrcsg for mslb-lifnr ) some user key in storage location ( mseg-lgort ) in this field. Is there anyway tat i can do verification before procees to the start-of-selection? how to check if the user key in correct data type to the selection screen? thankshi Joan,
Check these links :
http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a234d9b511d1950e0000e8353423/frameset.htm
http://www.erpgenie.com/abap/selection_screens.htm
http://www.sapdevelopment.co.uk/reporting/selscr/selscr_loopscreen.htm
priyanka. -
[Help] How to check the object locks held by a specific thread?
As the title I want to check locks held by a specific thread. How can I do this? In Java lock is acquired and release automatically by stating synchronized keyword. I have no idea on how to check the lock status and who owns whick lock.
Regards,
SkeeterLook for the method:
public static native boolean holdsLock(java.lang.Object);Its in the java.lang.Thread class. It will check the lock status for an object for the calling thread. -
Help, how to check anonymous entry from access logfile.
Can someone tell me how to check anonymous entry from logfile?
From which field I can tell it's an anonymous entry?
Thanks!
MarvinIn the Directory's access log you will see a RESULT entry like the following, where the dn="" indicates an anonymous BIND
[01/Mar/2007:14:24:59 -0500] conn=7 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0.127000 dn=""
If an actual user logged in the RESULT line would include the user's DN, like below
[01/Mar/2007:14:24:59 -0500] conn=2019877 op=0 msgId=1 - RESULT err=0 tag=97 nentries=0 etime=0.127000 dn="uid=myuserid,ou=people,dc=test,dc=com"
If you are deloyed on a Unix/Linux system you can count all the anonymouse BINDS using the following
grep -c "tag=97 .*dn=\"\"" access -
Hi All
I have strucked with code pls help....
How can i check the codition in java server faces.....?
like in my Application when user provides the in put like some state name in the next page i have to display some url for that state .......if he provide some other state name it will be different url .....pls help me how can i do that,,,,,,???
thanks in advance..There are certainly ways to do that. E.g. using the rendered attribute, using conditional statements in EL, using a specialized getter for that (lazily loaded if necessary), etcetera. But your functional requirement is unclear, so I can't go in detail with that.
In the future, please try to write normal English sentences. Don't write like SMS talk and save the periods and commas. The more effort you put in your question, the more chance you will be taken for serious and the more effort others will post in their answers.
Also, in the future, JSF related questions should be posted in the JSF forum.
Edited by: BalusC on 12-aug-2008 7:47 -
How to check released request transported to Production sys or not
hi,
Iam not a Basis guy, so waiting for your replies.
I have around 200 released requests in my dev system and i want to check wether these requests have reached my production system or not as a mass. I can able to check on one by one but how to do it in mass. ie..i load these requests and find withwether it has reached my target system.
Thanks,
SureshOne simple ms excel method described below.
1.Take list of transport entries from E070 table ( SE16)in production method ( you can select a particular time period).
2. take a list of all the released request from Dev system.
In excel , use Red color for production entries and some other color for Dev entries. Then paste them in a single column and sort them according to name. If a request has been imported in Production , you will find two entries for the request number. -
[Request For Help] How To Send Email Midlet Using Secure Socket ?
Hello, this is the first time i ask for help to forum.sun.com.
i try to make secure connection for send email from MIDlet. Maybe you can check to my code :
EmailMidlet.java
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.;
public class EmailMidlet extends MIDlet implements CommandListener{
Display display = null;
// email form fields
TextField toField = null;
TextField subjectField = null;
TextField msgField = null;
Form form;
static final Command sendCommand = new Command("send", Command.OK, 2);
static final Command clearCommand = new Command("clear", Command.STOP, 3);
String to;
String subject;
String msg;
public EmailMidlet() {
display = Display.getDisplay(this);
form = new Form("Compose Message");
toField = new TextField("To:", "", 50, TextField.EMAILADDR);
subjectField = new TextField("Subject:", "", 15, TextField.ANY);
msgField = new TextField("MsgBody:", "", 90, TextField.ANY);
public void startApp() throws MIDletStateChangeException {
form.append(toField);
form.append(subjectField);
form.append(msgField);
form.addCommand(clearCommand);
form.addCommand(sendCommand);
form.setCommandListener(this);
display.setCurrent(form);
public void pauseApp() {
public void destroyApp(boolean unconditional) {
notifyDestroyed();
public void commandAction(Command c, Displayable d) {
String label = c.getLabel();
if(label.equals("clear")) {
destroyApp(true);
} else if (label.equals("send")) {
to = toField.getString();
subject = subjectField.getString();
msg = msgField.getString();
EmailClient client = new EmailClient(this,"[email protected]", to, subject, msg);
client.start();
}and EmailClient.java
import javax.microedition.io.;
import javax.microedition.lcdui.;
import java.io.;
import java.util.Date;
public class EmailClient implements Runnable {
private EmailMidlet parent;
private Display display;
private Form f;
private StringItem si;
private SecureConnection sc; //SSL
private InputStream is;
private OutputStream os;
private String smtpServerAddress = "smtp.gmail.com"; //SSL
String from;
String to;
String subject;
String msg;
public EmailClient(EmailMidlet m, String from, String to, String subject, String msg) {
parent = m;
this.from = from;
this.to = to;
this.subject = subject;
this.msg = msg;
display = Display.getDisplay(parent);
f = new Form("Email Client");
si = new StringItem("Response:" , " ");
f.append(si);
display.setCurrent(f);
public void start() {
Thread t = new Thread(this);
t.start();
public void run() {
try {
//SSL
sc = (SecureConnection)
Connector.open("ssl://"smtpServerAddress":465"); //smtp with SSL port 465
sc.setSocketOption(SocketConnection.LINGER, 5);
is = sc.openInputStream();
os = sc.openOutputStream();
os.write(("HELO there" "\r\n").getBytes());
os.write(("EHLO" "\r\n").getBytes());
os.write(("auth login" "\r\n").getBytes());
os.write(("dHVnYXNha2hpci50cmlhZGl0eWFAZ21haWwuY29t" "\r\n").getBytes());
os.write(("dGEuZW1haWxjbGllbnQ=" "\r\n").getBytes());
os.write(("MAIL FROM:<">\r\n").getBytes());
os.write(("RCPT TO:<">\r\n").getBytes());
os.write("DATA\r\n".getBytes());
// stamp the msg with date
os.write(("Date: " new Date() "\r\n").getBytes());
os.write(("From: "+from"\r\n").getBytes());
os.write(("To: "to"\r\n").getBytes());
os.write(("Subject: "subject"\r\n").getBytes());
os.write((msg+"\r\n").getBytes()); // message body
os.write(".\r\n".getBytes());
os.write("QUIT\r\n".getBytes());
StringBuffer sb = new StringBuffer();
int ch = 0;
while((ch = is.read()) != -1) {
sb.append((char) ch);
si.setText("SMTP server response - " + sb.toString());
} catch(IOException e) {
e.printStackTrace();
Alert a = new Alert
("TimeClient", "Cannot connect to SMTP server. Ping the server to make sure it is running...", null, AlertType.ERROR);
a.setTimeout(Alert.FOREVER);
display.setCurrent(a);
} finally {
try {
if(is != null) {
is.close();
if(os != null) {
os.close();
if(sc != null) {
sc.close();
} catch(IOException e) {
e.printStackTrace();
public void commandAction(Command c, Displayable s) {
if (c == Alert.DISMISS_COMMAND) {
parent.notifyDestroyed();
parent.destroyApp(true);
} When I try to debug project from netbeans, i found this error :
Starting emulator in debug server mode on port 2668
Connecting to 127.0.0.1 on port 2800
nbdebug:
Waiting for debugger on port 2668
Waiting for KVM...
Running with storage root temp.SonyEricsson_JP8_128x160_Emu10
KdpDebugTask connecting to debugger 1 ..
Running with locale: Indonesian_Indonesia.1252
Connected to KVM
Connection received.
Attached JPDA debugger to localhost:2668
java.io.IOException: error 10054 during TCP read +
at com.sun.midp.io.j2me.socket.Protocol.nonBufferedRead(Protocol.java:299)+
at com.sun.midp.io.BufferedConnectionAdapter.readBytes(BufferedConnectionAdapter.java:99)+
at com.sun.midp.io.BaseInputStream.read(ConnectionBaseAdapter.java:582)+
at com.sun.midp.ssl.Record.rdRec(+41)+
at com.sun.midp.ssl.Record.rdRec(+5)+
at com.sun.midp.ssl.In.refill(+18)+
at com.sun.midp.ssl.In.read(+29)+
at EmailClient.run(EmailClient.java:74)+
Execution completed.
5145824 bytecodes executed
9258 thread switches
1762 classes in the system (including system classes)
0 dynamic objects allocated (0 bytes)
0 garbage collections (0 bytes collected)
debug:
BUILD SUCCESSFUL (total time: 4 minutes 34 seconds)
Regard
LittlebroDon't multipost and don't use the browser's back button to edit your posts as that creates multiple postings. I've removed the other thread you started with the same questio.
Also, don't post to long dead threads. I've blocked your post and locked the thread you resurrected.
db -
Need help - How to check online status of file?
Hi.
I'd like to make my flash app checks whether a particular file is online.
Let's say this file is 1MB. How do I make it so that when the flash app checks the URL of the file, it won't download the whole thing?
That is, once the flash app confirms that the file is up, it immediately cancels the download and displays a status message that the file is up. And if there's a 4xx or 5xx message, it will report appropriately.
I'm a total newbie, so I don't know how to go about this. I'd appreciate it if you could point me in the right direction.
Thanks.you can use the filereference class'es download() method and its listener's onProgress() method.
-
Please help me how to check a material does existed group code in system (w
Hi all,
Please help me...
I have inputted quantity for tx MC 94 but when I input them into tx MC94, I met a message " Structure not yet maintained for this conbination characterstics". Step by step to show a error message as below:
Step 1: Launch MC 94
step 2: Enter Planning
Step 3: Enter Prod.Code. Material (ex: enter material code :0101010260008, this code is existed Prod.Code )
Step 4: Click on "Inactive Version " button
==> A error message is showed.
Please help me how to check a material does existed group code in system (which table to check it)?
How to record the message" Structure not yet maintained for this conbination characterstics" to catch up it in my program?
Thank in advance.Karenloria,
1. Check in MC8C, which Infostructure is used for Planning type "Planning" or the one you are entering in the intial screen of MC94.
2. Using transaction MC63 for the infostructure identified in step 1, check the planning hierarchy maintained. If this product is not maintined maintain using MC62.
You can also check using SE16 transction the current infostructe records(Plan) for the table name = infostructure identified in step 1.
Regards,
Prasobh -
How to check the records that were inserted in a day?Please Help!
HI All,
How to check the records that were insterted in a day in a standard SAP table?
For example : I want retrieve the records that were added in a day in WLK1 table.
How do i do this?
Urgent!! Please help!
Thanks in advance!
Sandeep ShenoyHI
Changes to data within a table can be automatically logged. Such automatic logging of changes is called automatic table history. To turn on logging, tickmark the Log Data Changes check box on the Technical Settings screen
IF THIS IS ALREADY DONE FOR A PARTICULAR TABLE, YOU CAN GET THE RECORD OF CHANGES THAT YOU MADE FOR THAT PARTICULAR TABLE AS EXPLAINED UNDER
<a href="http://64.233.179.104/search?q=cache:pOdVy55jfAIJ:cma.zdnet.com/book/abap/ch06/ch06.htmHISTORYOFUPDATESINADAYINABAP&hl=en&gl=in&ct=clnk&cd=1">Automatic Table History and Change Documents</a>
IF ITS HELPFUL PLEASE REWARD POINTS
REGARDS
ANOOP -
HELP !!! How to check the size of an object in Photoshop ?
Hello,
I'm using Photoshop CS 3 to design a website. I used several shapes such as rectangle, line or ellipse of different size. Probably it is a stupid question but I don't know how to check the size of an existing rectangle. I tried free transform tool that selects my rectangle but doesn't show its size. Then I made a selection with rectangular marquee tool but I see nowhere the size of the selected area.
If you know the name of such a tool please help me !
Have a nice day !Web images are all pixels. View at 100% at pixel view. that is your exact size
-
I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
<Email Edited By Host>There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
Hope this helps.
Vinit -
so now i might ned u all help, currently im using ipad and i get some news abt ios 6.1 and im interested abt it so i updated wif my Ipad (ver. ios 5) and i checked some web said ipad1 cnt update to ios6 so i might ned help how to restore bck to ios5 as normal be4
If it's showing the connect to iTunes screen then you will need to do that.
But Apple don't provide any method to update the first gen iPad to iOS 5 (nor do they support downgrading the iOS version). -
I cannot get an unlocked version of drivesafe.ly to operate on any accounts on my iphone 4S and have had no help when I asked them for support. I am now trying to figure out how to refund the product. Anyone know how to make that request through itunes?
Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.
Maybe you are looking for
-
Is there any way to change user operations on multiple tracks at once?
I have a complex project (99 tracks, dozens of menus and scripts). I need to make one version of this DVD for the end client (teenagers at health clinics) who will be forced to view it in a specified way, and another version for educators (staff at t
-
Need to get graphics to work on HP Envy 17t-3000 CTO
Please bear with me. I'm not very tech savvy but am great at following directions to solve problems. I received a used HP Envy 17t-3000 CTO laptop with 750 GB...i7 - 2670 QM...6GB...64 Bit. with no restore on it to get back to original config. I rece
-
I have icons that pop up and say: waiting but nothing loads, these keep coming in after I open music player. I can't delete these either
-
The installation program is not working so I can't install anything. What do I do?
The installation program is not working, it won't start and I have to quit by forcem so I can't install anything. What do I do?
-
According to the article "Enterprise JavaBeans Components and CORBA Clients: A Developer Guide", CORBA clients can directly access an EJB bean via IIOP. The procedure is like the followings: 1) Generate IDL files from EJB remote classes(Logger.class,