Sending udp packets using java and receiving it using c

hi,
Is it possible to send udp packets using java and receive the same using c??????? if yes.... plz help immediately.

The biggest issue is data format. The JVM is big endian, with 16-bit characters. The machine running 'C' could be almost anything. A (signed!) byte array is probably the easiest unit of exchange.
The Java program has its own techniques for storing/retrieving data to/from the byte array - and the C program has its own techniques. ASCII Strings are often the easiest to exchange - just convert the java String objects to byte array and send them.
apaliwal1 has already given the UDP calls to send/receive the data.

Similar Messages

  • So my I phone 4s volume has decided to pack  allowing only my phone to make sounds when I have an incoming call, I can also here fine using facetime and receiving calls. YouTube, soundcloud, any of I players will no longer play sound. I've restored the ph

    So my I phone 4s volume has decided to pack  allowing only my phone to make sounds when I have an incoming call, I can also here fine using facetime and receiving calls. YouTube, soundcloud, any of I players will no longer play sound. I've restored the phone using iTunes on my laptop and checked all the volumes are turned up and the button at the left hand Side of the phone is in the correct position.

    Try inserting and re-inserting your headphones 7 or 8 times. Also try cleaning out the headphone jack in case of debris that might be interfering with the connection/disconnection.

  • What is the use vss in java and how to use it?

    can i know what is vss in java and how to use it and also can you tell me related vss like svs?
    and what are tools for configuration in real we will use?
    am i student i want to know these all?

    jduprez wrote:
    You do not need to know them all, but one for sure, since it is a must for multi-developer team.8o( ?????
    It is a must. Period.
    OK, let's tone down: it is a must for any job related to software production. Not only development.That begsl the question, What does it mean to "know" one of these systems? I would expect Product Management, Documentation, QA, and Support staff to be conversant with the fundamentals of such a tool--check in, check out, version/revision numbers--but not much more than that. Developers, on the other hand, I would generally expect "know" the system with a much higher level of expertise--query language, branching, merging, and so on.

  • PMML Export using Java and ODM 10.2

    I'm attempting to export a model I've built in ODM using Java and the example code in dmexpimpdemo.java. I'm getting an error when trying to set an additional attribute to export the data as PMML.
    exportTask.setFormat(ImportExportFormat.PMML2_1);
    If I call this method (with any ImportExportFormat) I get the exception:
    javax.datamining.JDMUnsupportedFeatureException: Unsupported ExportTask for PMML2_1
    What is the proper way to export a model as PMML using the JAVA APIs?

    PMML Export is not supported by the ODM 10.2. Hence you see unsupported exception.
    ODM 10.2 supports only Oracle native format support for the mining model export and import. For more details about the usage refer to the demo program dmexpimpdemo.java.
    To download sample programs from OTN http://www.oracle.com/technology/products/bi/odm/samples/odm_sample_code_0805.zip
    For decision tree model you can export the model details in PMML format using the DBMS_DATA_MINING.get_model_details_xml. For example, the following query returns the PMML format decision tree model as an Oracle Database XMLType
    select dbms_data_mining.get_model_details_xml('TREE_MODEL').extract('/') AS DT_DETAILS FROM dual
    Regards
    Sunil

  • Want To create Zip file  using java,And Unzip without Java Program

    I want to create a zip text file using java, I know Using ZipOutputStream , we can create a zip file, , But i want to open that zip file without java program. suppose i use ZipOutputStream , then zip file is created But for unZip also difftrent program require. We cant open that zip file without writing diff java program.
    Actually i have one text file of big size want to create zip file using java , and unzip simply without java program.Its Possible??
    Here is one answer But I want to open that file normal way(
    For Exp. using winzip we can create a zip file and also open simply)
    http://forum.java.sun.com/thread.jspa?threadID=5182691&tstart=0

    Thanks for your Reply,
    I m creating a zip file using this program, Zip file Created successfully But when im trying to open .zip file i m getting error like "Canot open a zip file, it does not appear to be valid Archive"
    import java.io.*;
    import java.util.zip.*;
    public class ZipFileCreation
         public static void main (String argv[])
         try {
         FileOutputStream fos = new FileOutputStream ( "c:/a.zip" );
         ZipOutputStream zip = new ZipOutputStream ( fos );
         zip.setLevel( 9 );
         zip.setMethod( ZipOutputStream.DEFLATED );
    //     get the element file we are going to add, using slashes in name.
         String elementName = "c:/kalpesh/GetSigRoleInfo092702828.txt";
         File elementFile = new File ( elementName );
    //     create the entry
         ZipEntry entry = new ZipEntry( elementName );
         entry.setTime( elementFile.lastModified() );
    //     read contents of file we are going to put in the zip
         int fileLength = (int)elementFile.length();
         System.out.println("fileLength = " +fileLength);
         FileInputStream fis = new FileInputStream ( elementFile );
         byte[] wholeFile = new byte [fileLength];
         int bytesRead = fis.read( wholeFile , 0 /* offset */ , fileLength );
    //     checking bytesRead not shown.
         fis.close();
    //     no need to setCRC, or setSize as they are computed automatically.
         zip.putNextEntry( entry );
    //     write the contents into the zip element
         zip.write( wholeFile , 0, fileLength );
         zip.closeEntry(); System.out.println("Completed");
    //     close the entire zip
         catch(Exception e) {
    e.printStackTrace();
    }

  • Ccidentally deleted the Trash Icon next to the Send/ Reply Icon in Mail and I'm using Lion 10.7.5. Does anyone know how to retrieve it?I accidentally deleted the Trash Icon next to the Send/ Reply Icon in Mail and I'm using Lion 10.7.5. Does anyone k

    I accidentally deleted the Trash Icon next to the Send/ Reply Icon in Mail and I'm using Lion 10.7.5.
    Does anyone know how to retrieve it?

    Luigi
    That worked, I knew it was something simple.
    Mille Grazie!!!
    Michael

  • How do i send an email to addressee and receive back a confirmation that the addressee received my email?

    how do i send an email to addressee and receive back a confirmation that the addressee received my email?

    Even if you find a way to send the request for a read confirmation with the email, you are dependent on the recipient's mail system and/or mail reading software to notice it and comply with it. Many do not do so, either because they cannot or because somebody has disabled (or not enabled) the feature.

  • Difference between using Java and Non-Java in Webi.

    Hi ,
    I have one more question requesting for an answer.
    Would like to know what is the Difference between using Java and Non-Java in Webi.
    Thank You in advance.
    Appana Ganesh.

    Hi,
    check the Information in following post, the differences are discussed there:
    http://scn.sap.com/thread/3295306
    best regards,
    Victor

  • When to use AMF and when to use RTMP??

    Hello can someone explain the difference??
    I am using all the defaults for the configurations files
    (remoting and datamanagement) and my app works perfectly on
    development mode where everything is on localhost, but when we try
    it on pre-production it keeps throwing an error saying that it
    couldn't connect to the RTMP channel. The only thing that changes
    between these two modes is that on development i access everything
    on localhost and on pre-production we point to another server.
    I am totally clueless why this is happening, i am bit
    confused why data-management uses RTMP and why remoting uses AMF,
    so if anyone could explain it to me it would be great.
    Thanks

    There's no special reason why one uses RTMP vs. AMF. Data
    management service can also use AMF and Remoting can also use RTMP.
    The only real requiement is that Data management service needs to
    be able to receive updates from the FDS/LCDS server. This can be
    achieved by using a channel that is capable of receiving pushed
    updates from the server (eg. RTMP) or a channel that is capable of
    polling for updates on the server (i.e. AMF-polling). Therefore,
    when you use AMF with Data management service, you need to have
    polling enabled with a polling interval.
    In terms of why AMF works but RTMP doesn't is that AMF
    channel uses AMF format over the HTTP protocol whereas RTMP channel
    uses simple TCP socket (and not HTTP). Therefore in some
    environments, RTMP will be blocked by the firewalls but AMF won't
    since it's like regular HTTP traffic. In this case, you can use AMF
    polling instead or use RTMPT which is new in LCDS 2.5.

  • When to use jsp,and when to use servlet?

    I think that jsp and servlet can realize the same functions, because when run a jsp, it is transferred to a servlet program, so when to use jsp and when to use servlet?
    I am now developing the input interface for a website, I just use jsp and javabean to connect to weblogic and database, and I didn't use servlet, Is there any unseemliness?
    Thank you!

    IMHO I use servlets to control the flow between my jsp's based on a number of factors in a webapp. For instance, user authorization. If a user has the authorization to conduct various administrative functions on an application (like change user rights, reset passwords etc) they will have access to specific buttons or links on some screens that others will not. I use servlets to establish what access rights a user has and direct them to the appropriate pages. I also use servlets to test data validity on form input screens. I know that I can also do this with JavaScript but that can be disabled by the client and in order to prevent that I also double check the form input from a servlet. All my jsp's do is display the results of a business process (which is held in a JavaBean or EJB) and the servlets act as the controllers for the application, connecting to multiple databases, verifying application state, flow control etc. I try to keep the jsp as simple as possible as some of them are maintained by html developers who lack the necessary experience to write java code. I hope this helps.

  • Ive just upgraded to Mountain lion, I was using Safari and tried to use iCloud tabs. When I open it up there are no tabs there, anyone have any ideas on how to get it working?

    Ive just upgraded to Mountain lion, I was using Safari and tried to use iCloud tabs. When I open it up there are no tabs there, anyone have any ideas on how to get it working?

    Can you check system update? I think I did a system Update 1st, a day before installing OSX Lion and there is a Safari update. If not try logging in iCloud.

  • HT201269 i have 4s used one and i been using it since a while ago and use my i cloud on it but when i upgrade

    i have 4s used one and i been using it since a while ago and  i cloud was working fine but when i upgrade it was asking me for the previse user i cloud ? what should i do

    Looks like its fixed.     I am syncing it now.      A lot of the answers are for the new iphone so i had to mess with a bunch of settings as well.  My old phone is now an 8 gig ipod.  the books app no longer works and that *****.....but better than nothing...

  • I use ical and my husband uses outlook.  how can i add an appointment or event to his outlook calendar from my iphone , ipad or mac?

    I use ical and my husband uses outlook.  How can I add an  appt or event to his outlook calendar from my iphone, ipad or mac?

    I use ical and my husband uses outlook.  How can I add an  appt or event to his outlook calendar from my iphone, ipad or mac?

  • 1) (Right click) Context menu is IE's context menu(!) and when I attempt to use a sight that uses scripts (a site that I've used extensively and which I use to conduct my online college courses - application is Angel), it goes blank

    1) (Right click) Context menu is IE's context menu(!) and (2)when I attempt to use a sight that uses scripts (a site that I've used extensively and which I use to conduct my online college courses - application is Angel), it goes blank
    == This happened ==
    Every time Firefox opened
    == 2 days ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; WWTClient2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Creative AutoUpdate v1.10.10)

    Previous post from "Not Anonymous" but from the original poster; I used the link provided in the email notification and now have to indicate who I am???
    Thanks; starting FireFox in safe mode and disabling all add-ons did solve the problem; however, a new problem has emerged. To re-enable the add-ons, you need to open up and use the add-ons control panel through FireFox. Any attempt to do so causes the FireFox add-on control page to close immediately.
    Thanks for your help.

  • Whwn to use BDC and When to use LSMW

    Hi all,
            Kindly tell me when to use BDC and when to use LSMW.
    Please give me some scenarios, so that I can get a clear idea.
    Note : Do not give the difference between BDC and LSMW.
    Thanks to all in advance.
    Regards,
    Rajesh P

    Hi Rajesh,
    LSMW is for standard SAP applications and BDC is for customized applications.
    Its worth to check the below link. Its already answered by our Community
    Diff between LSmw and Bdc
    Regards,
    Suresh

Maybe you are looking for

  • Palm TX no longer recognizes SD cards!!!

    I have two Palm TX's and have been using Lexar SD, Sandisk SD, and Sandisk Ultra II SD cards (all are 2G cards) for months without any problems. This past week, I went through airport security with both TX's and all these cards, and now all but 1 SD

  • Using my tv instead of my macbook pro's broken display

    The display on my MacBook Pro has recently stopped working. I want to use my tv as my display until I can fix the laptop display. I bought the adapter and the hdmi cable and hooked it up to my tv. The screen shows up but instead of mirroring my displ

  • I want to increase 4gb to 8gb

    Hi i have 4gb in my mac.I want to increase to 8 gb

  • Can i change the person who is picking up the iphone on friday?

    And if i can, will it change the place in line that i was in?   Also, will the pre orders be held in a different line than people wanting to buy non pre order stock or will i have to wait in one giant line?

  • Toshiba Satellite A505 - Operating system windows 7

    Toshiba Satellite A505 - Operating system windows 7 1) Unable to get the main part of my touch pad to respond to tapping.  In the control panel we made sure that tapping and tap zone was enable.  Someone said to hold fn & f9 simultaneously but it sti