Network programming book

Hi friends,
I want to know about a book related to "Multicast and multi-homing" network programming in java.
Thanks
Ghouse

I would suggest you look at Java Network Programming on Amazon.
To repeat a previous posting, you cannot multicast over the internet.
Multi-homing is and old approach to using a PC as a firewall. The PC has two network cards and passes packets back and forth based on filtering rules. Is this what you are looking for? Why wouldn't use use a firewall applicance which is probibly cheaper?

Similar Messages

  • Where can I find knowledge about "java network programming"?

    I am interested in network programming in java. I need some documents and I don't where can I find it?

    http://java.sun.com/docs/books/tutorial/networking/index.html

  • Advanced Java network programming

    I have been playing around with the various Server/Client tutorials not only on this site but many others for some time now. Whilst I have learnt a great deal I am now trying to further my knowledge.
    The problem is, there does not seem to be a great deal of information on the Web realting to the advanced network programming stuff. Obviously not having a network of my own I am now interested in learning various ideas using the Internet. Obviously not being a prat about it and port scanning other computers or anything like that.
    I was hoping someone reading this might have a suggestion about where to go next in my learning curve. Also if anyone could recommend any good sources of info for this type of stuff.
    I've currently got three telephone lines in, each line with a seperate Internet account set-up. What I want to do is have them all connected to the web at once and then attempt various things, such as connection, that type of stuff.
    Help really appreciated.
    Thanks,
    kP

    Maybe I'm catching the wrong vibe here, but it seems to me that you need to learn a bit about networking in general, before you worry about how it's all done in java. I would suggest a good basic computer networking text book. After you have good understanding of how different networks works, packet structure of the various common protocols, IP, TCP over IP and UDP over IP. I think the java code to implement it all will just fall into place. my AIM SN is SpinozaQ if you would like a book suggestion. I don't have any names going through my head right now.

  • Starting Network Programming

    Hi I am currently jumping into using java to make network applications. I am currently reading a book covering the basics of networking along with how tcp/ip works while working through a small suplemental book called "TCP/IP Sockets in Java for Programmers". I was wondering if any one had some suggestions on books to check out, or a better route to learning how to programming network applications.
    Thanks,
    Francesco DeSensi

    Don't jump into network programming first. Learn the basics of Java first (check the tutorials. You'll thank yourself.

  • Help with a program book ad page

    Hello,
    I have finished creating an ad for a program book and I cannot get it to either print right or when I did get it to do right I now have a right margin going into the crease and I have my ad going over the 1/4 margins on the bottom.
    First I set up a 8.5 in by 5.5 in page size (size of program book) because I am only going to be using 1/2 of that page for my ad. I finished my design, then printed it out. My design came out landscape on the page, rather than upright portrait on the page. Obviously I think Im getting its because of the way it wants to print it.  There are not many choices given in the print options for telling it to print a certain way (at least I cant find it).
    Now, after messing with that a few times, I somehow finally got it to print at the top left of my paper (it actually doesnt matter if its at the top or bottom).  When I fold it to 8.5 in x 5.5 in and fold the book in half I can see its not set up correct.  I am not sure if its on my end or if its the printer again.  The right margin runs into the spine of my paper (or crease) and the bottom of my ad has run over the middle crease. My left margin is at least 1/2" away from the left edge of my paper. I need my ad to be 1/2 the page of a 8.5in x 5.5 in page. The ad's are sold as a full page or 1/2 page.
    My page set up is as a document.  Its set as Page Size: Letter - 1/2 (I did not set this?), width 5.5 in and height 8.5 in, orientation is Portrait. I do have a bleed, but I dont need it and ignore it.  Ive started my ad at the top Margin lines, but I made ad short of the right margin, so as to leave room near the inside crease where it would be stapled. I did not set up these margin lines and not sure how to change it. When I added my background artwork, I pulled it down till it turned PINK so that I would know where the middle of the page is. But my ad prints over this.
    I am needing this ad to be at least 1/2" away from the top, left and right margin of the page and pretty close to the 1/2 page mark, but not over.  Do i make sense?
    Now, just a little back ground. Ive designed program books in the past using Publisher.  I designed a whole program book, cover to cover and I had very little issues doing it.  Now I am using InDesign for the first time to do this and struggling a bit here.  The printing of stuff from ID is also driving me nuts. Im not liking the way ID prints and if I tell my Epson printer how to print, it doesnt work and continues to give me crappy outputs.
    Any help would be appreciated.  I need to turn this in tonight, but i cant turn in a camera ready printout if its not printing out correctly.
    Thank you,
    Tina

    NeverWasBefore wrote:
    So, whatever is the easiest way for her to get this ad, so that she doesnt somehow mess it up.
    You really can't control for that. If she doesn't know what she's doing, you could send her a technician with a brand new printer, and she could do it wrong. The best you can do is to communicate to her what you intend, and hope she can pull it off. I'd send a PDF set to the final size with the margins, and one without the margins. When she opens them, she will see something like this:
    This is a screenshot from Acrobat showing the white document size against the black background that represents what is outside of the document. You can see the amount of white space that surrounds the image area (the placeholder type), so you know how much border you intended.
    Now, your InDesign document is half-letter size (5.5x8.5). If you subtract the amount of margin you used (in my example, I used .5" on all sides), you have the size of the image area (my example has a 4.5x7.5 image area). You can make a new InDesign document the size of your image area (4.5x7.5) and place the PDF that has the margins (like in the screenshot above) onto the page and position it so that the image area lines up with the document page borders, as you can see in this screenshot:
    You can see the blue InDesign image frame with the handles, which is the size of the half-letter PDF, and the image area contained within the document border, which is the black stroke that you normally see in InDesign. Don't worry about the magenta inner margin—that could be set to anything, and isn't in play here. In order to position the placed PDF into the new 4.5x7.5 InDesign document, when you place the PDF, check the Show Import Options box in the Place window. that will bring up a new screen after you select which image you are placing and you hit the OK button. The screen looks like this:
    In the Options section, change the Crop to from Bounding Box (Visible Layers only) (which should be the default choice) to Art, and you will see the dotted line that represents the size of the image change to include the margins.
    Now, when you place the image, just set the position proxy (which looks like this: ) to the top left corner and in the X and Y fields, enter the negative of the amount of margin you have. Since I used .5" margins, I set X and Y to -.5" each, and that aligned the image area of the larger PDF to the document borders of the smaller InDesign document. You could just eyeball it in if you want, but this way you can be a little more sure you aren't cutting off a hair of some of your image area.
    If you export that document to PDF, it will look like this:
    …which the person who will be putting this together will probably use, since it will be easier to place into something like Publisher or Word because it is smaller than a half page (an image that is larger than the document will probably be reduced in size to fit automatically—something that Word does, and maybe Publisher does that too, but I don't use Publisher so I don't know). How She positions it within the page is up to her, and not something you can control unless you are in the room with her, so it's a crapshoot. She could also use the PDF with the margins if it works better for her, but all you can do is explain to her what you are sending and what you would like.

  • Java Programming Book Recommendation

    I'm looking for a good java programming book that covers more than the basics. In my CS110 class we went through the book:
    Java Programming - From Problem Analysis to Programming Design
    by: D.S. Malik
    I'm looking to expand upon this and was hoping someone was able to point me in the right direction of reading material.
    Thanks!

    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoritative than this.

  • Subtle bug in Deitel & Deitel "Java How to Program" book

    Merry x mas and happy new year, guys.
    I have this applet (which is at the same time runnable and listener) its printed in Deitel & Deitel "Java How to Program" book 3rd ed.
    The program works but as you turn on and off the "suspend" checkboxes some of the threads are not notified, so they go to infinite wait state, deadlock. I couldn't figure out what is wrong or how to fix the problem.. please read the code below, or copy and paste this code to your eclipse, its just one file, then play with the check boxes, some of the threads don't wake up after wait... technically they don't shift from WAITING to TIMED_WAITING state.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * @author
    // Fig. 15.7: RandomCharacters.java
    // Demonstrating the Runnableinterface
    public class RandomCharacters extends JApplet implements Runnable, ActionListener {
        private String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        private JLabel outputs[];
        private JCheckBox checkboxes[];
        private final static int SIZE = 3;
        private Thread threads[];
        private boolean suspended[];
        public void init() {
            outputs = new JLabel[SIZE];
            checkboxes = new JCheckBox[SIZE];
            threads = new Thread[SIZE];
            suspended = new boolean[SIZE];
            Container c = getContentPane();
            c.setLayout(new GridLayout(SIZE, 2, 5, 5));
            for (int i = 0; i < SIZE; i++) {
                outputs[i] = new JLabel();
                outputs.setBackground(Color.green);
    outputs[i].setOpaque(true);
    c.add(outputs[i]);
    checkboxes[i] = new JCheckBox("Suspended");
    checkboxes[i].addActionListener(this);
    c.add(checkboxes[i]);
    public void start() {
    // create threads and start every time start is called
    for (int i = 0; i < threads.length; i++) {
    threads[i] = new Thread(this, "Thread " + (i + 1));
    threads[i].start();
    public void run() {
    Thread currentThread = Thread.currentThread();
    int index = getIndex(currentThread);
    char displayChar;
    while (threads[index] == currentThread) {
    // sleep from 0 to 1 second
    try {
    Thread.sleep((int) (Math.random() * 1000));
    synchronized (this) {
    while (suspended[index]
    && threads[index] == currentThread) {
    wait();
    } catch (InterruptedException e) {
    System.err.println("sleep interrupted");
    displayChar = alphabet.charAt(
    (int) (Math.random() * 26));
    outputs[index].setText(currentThread.getName() + ": " + displayChar);
    System.err.println(currentThread.getName() + " terminating");
    private int getIndex(Thread current) {
    for (int i = 0; i < threads.length; i++) {
    if (current == threads[i]) {
    return i;
    return -1;
    public synchronized void stop() {
    // stop threads every time stop is called
    // as the user browses another Web page
    for (int i = 0; i < threads.length; i++) {
    threads[i] = null;
    notifyAll();
    public synchronized void actionPerformed(ActionEvent e) {
    for (int i = 0; i < checkboxes.length; i++) {
    if (e.getSource() == checkboxes[i]) {
    suspended[i] = !suspended[i];
    outputs[i].setBackground(
    !suspended[i] ? Color.green : Color.red);
    if (!suspended[i]) {
    notify();
    return;
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Abiel wrote:
    No, notifyAll() is used to tell the threads that we're stopping.... see that it's written in the stop() method of the applet. Eg if the user browses away from our applet we set the array of threads to null and notify them all. So notifyAll() makes sense.Yes, it does make sense there too (!!!!!!!).
    However, I gave it a try with what u suggested, and it didn't work (as expected) .... Apparently you did not really read my suggestion or my explanation. If you had, you'd have expected it to work and it would have worked.
    the problems still remains, some threads are getting in wait state even if their check box is not suspended.Maybe you should add the following code to understand the root cause and solution.
        System.out.println("Thread " + index + " will wait to be notified.");
        wait();
        System.out.println("Thread " + index + " was notified.");
    what could the problem be?Improper use of notify()
    With kind regards
    Ben

  • Network Programming exam papers (college exam papers)

    hello.
    my name is james mcfadden and i am a final year (4th year) undergraduate computing student at Letterkenny Institute of Technology. my e-mail address is [email protected] I have a question here for you. Would you have links to online versions of final year undergraduate Computing exam papers, specifically Networked Applications Development and or Network Management exam papers? I was only able to get access to Trinity College Dublin�s exam papers and Letterkenny IT�s exam papers.
    The 2005/06 academic year is the 1st academic year that final year undergraduate computing students at Letterkenny IT are being taught how to continue doing network programming in Java. i was taught how to do simple network programs in Java when I was in 3rd year.
    The name of the network programming subject that I�m doing in 4th year is Network Programming for Broadband Systems. It is divided into 2 parts: Programming and Networks. In past exam papers (C++ papers), a student would have had to answer 4 out of 6 questions. There would�ve been 4 programming questions and 2 networking questions on those papers. It is going to be the same for both the Summer and Autumn 2007 Broadband Network Programming exam papers, apart from fact that they will be Java papers and that a lot of the material that I have learned is new.
    In 4th year I did Multicast Sockets, Threads, Non-Blocking I/O, Remote Method Invocation, Protocol Handlers, and Content Handlers for the Programming part of the subject (Java Network Programming, 3rd Edition, by Elliote Rusty Harold).
    I did Network Security and Network Management for the Networks part of the subject (Computer Networking : A Top-Down Approach Featuring The Internet, 3rd Edition, by James F. Kurose and Keith W. Ross).
    Your help is greatly appreciated.
    Thank you.

    I have a question here for you.
    Would you have links to online versions of final year
    undergraduate Computing exam papers, specifically
    Networked Applications Development and or Network
    Management exam papers? No

  • How to write JDBC code in a java thread? for network programming

    Hii guys, i am new to java network programming. I developed small swing application for stock controlling in a shop, so i need to run the database in a server. i try the peer to peer scenario, but the response is too late and the application get stuck. there i wl put my data base java class
    please help me for this, how can i change this java class to networked JDBC
    import com.mysql.jdbc.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class ConnectionSet {
    private String severIp = "localhost";
    private String severPort = "3306";
    private String userName = "root";
    private String password = "123";
    private ResultSet rs;
    public void setSeverIp(String Ip) {
    severIp = Ip;
    public void setSeverPort(String Port) {
    severPort = Port;
    public void SetUserName(String Name) {
    userName = Name;
    public void setPassword(String passWord) {
    password = passWord;
    public ResultSet getResult(String url) throws Exception {
    Class.forName("com.mysql.jdbc.Driver");
    Connection cc = (Connection) DriverManager.getConnection("jdbc:mysql://" + getSeverIp() + ":" + getSeverPort() + "/suriyalanka", getUserName(), getPassword());
    Statement s = cc.createStatement();
    rs = s.executeQuery(url);
    // java.sql.ResultSet rs = (ResultSet) DriverManager.getConnection("jdbc:mysql://"+getSeverIp()+":"+getSeverPort()+"/suriyalanka",getUserName(), getPassword()).createStatement().executeQuery(url);
    return rs;
    public Connection getConnection() throws Exception {
    Class.forName("com.mysql.jdbc.Driver");
    Connection cc = (Connection) DriverManager.getConnection("jdbc:mysql://" + getSeverIp() + ":" + getSeverPort() + "/suriyalanka", getUserName(), getPassword());
    return cc;
    public void setResult(String url) throws Exception {
    Class.forName("com.mysql.jdbc.Driver");
    Connection cc = (Connection) DriverManager.getConnection("jdbc:mysql://" + getSeverIp() + ":" + getSeverPort() + "/suriyalanka", getUserName(), getPassword());
    Statement s = (Statement) cc.createStatement();
    s.executeUpdate(url);
    public String getSeverIp() {
    return severIp;
    public String getSeverPort() {
    return severPort;
    public String getUserName() {
    return userName;
    public String getPassword() {
    return password;
    please help me for this, how can i change this java class to networked JDBC
    Edited by: 798670 on Sep 29, 2010 6:04 AM

    Have you verified that your mysql allows network connections?
    In order to allow network connections you have to comment or remove line "skip-networking" in my.ini(windows) or my.cnf(unix) configuration files of your mysql instance.
    Or if you have the mysql administrator installed
    MySQL Administrator / Startup Variables / Disable networking (uncheck)
    By!

  • Network Programming

    I am somewhat familiar with how to make a connection between two machines and have one application talk to another. Basically you have a ServerSocket that the server uses to "listen: for incoming connections and a Socket that a client uses in order to initiate a connetion. Once a client makes a socket connection, the ServerSocket reutrns (via accept() ) a corresponding Socket through which communication takes place. You then have a true Socket to Socket connection and are able to treat the connection as an simple I/O Stream.
    But how would I be able to simply establish a connection between a Java Application on one machine and a C application on the other. I am not that familiar with C code...but I need to be able to send strings from my Java application into an application that a team member of mine is writing.

    On the java side you use the same Socket and ServerSocket code. On the C side it really depends on which C you are using and which operating system. In VC++ version 5 or 6 you should look at the MS WSA* functions or you could use the socket implementation in MFC. If you using Ansi C on a unix or linux system you can use "berkeley sockets", to get a start check out "man socket".
    You might want to get a copy of "Unix Network Programming Volume 1" by Stevens, regardless of the C system you plan to use.
    http://www.amazon.com/exec/obidos/tg/detail/-/013490012X/104-8001926-7743921?v=glance

  • Carbon programming books? Should i bother?

    Hi all.
    Ive been developing in C++ for 3 years (non-mac platform) I have justed invested some cash into some Apple gear (for music and video production).
    I wish to port over and create C++ based applications for the Mac. Now, I've had a look at Cocoa, bought a basic guide to the programming language and to be honest, the syntax is very foreign to C++ (please don't get me wrong, Cocoa has excellent librarys, structures and visual interface) but i feel that im learning a new complete language, in which i dont have much time.
    Now, ive had a look at Carbon programming interface, i feel more at home using the Carbon syntax therefore have decieded to move to Carbon instead of Cocoa.
    Ive done a few search's but to be honest i cant find basic reading material. So therefore can anyone advise me on books, tutorials (online)?
    And one more thing, I keep my code up-to-date with the latest standards, meaning INTEL?
    As a i have a PowerMac (IBM), will the code have to be re-written to the Intel platform?
    Any advice would be great.
    Thanks in advance.

    Now, ive had a look at Carbon programming interface,
    i feel more at home using the Carbon syntax therefore
    have decieded to move to Carbon instead of Cocoa.
    Ive done a few search's but to be honest i cant find
    basic reading material. So therefore can anyone
    advise me on books, tutorials (online)?
    And one more thing, I keep my code up-to-date with
    the latest standards, meaning INTEL?
    As a i have a PowerMac (IBM), will the code have to
    be re-written to the Intel platform?
    Sadly, there have been no Carbon programming books published since 2002. Your best bet is to go to Mac Tech magazine's site (www.mactech.com). It has an electronic version of a Carbon programming book. The book is about 5 years old, and Carbon has undergone many changes since then, but there's not much else available.
    I think you'd be better off going with Cocoa. You can write the user interface in Cocoa and the rest of your code in C++. Learning Objective C takes less time than learning Carbon by wading through Apple's documentation and reading the Carbon header files.
    Carbon and Cocoa will run on both Intel and PowerPC Macs if you use Xcode 2.1 and above and build your program with the Universal SDK, which comes with the Xcode Tools. Reading data from files is the main area of your code you'll have to worry about due to the endian differences between Intel and PowerPC processors.
      Mac OS X (10.4)  

  • I am making a Conference/Event program book.  Are there mac programs or apps that could help me design this?

    I am making a Conference/Event program book.  Are there mac programs or apps that could help me design this?

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • I am working on a program book in Pages...need help moving pages around...

    I am working on a program book in Pages...need help moving pages around...

    I think word procession mode but I used a magazine template to get started and then just kept adding blank pages to finish...I have done these before without any trouble moving the pages around...so very confused.  Thanks for any assistance. 

  • Network programming beginner

    Hi All,
    I have been programming for a while in java but for the first time am doing network programming. Basically I have to connect to one of our supplier's systems. They have setup a raw TCP/IP exchange for request response. We send them requests as a string over tcp/ip and they reply back with a string. The formats of course are propritory to the supplier(a big telecom company).
    My problem is quite simple at the surface, i the hell cant figure this out!!
    We have mulitple suppliers and I have a method called sendRequest(String req) in a general SupplierConnect interface. The implementation for this supplier (other suppliers talk SOAP so its simpler :) ) opens a socket... my code is as follows
    +++++++++++++++++++++++++++++++++++++++++++++++++
    public String sendRequest(String requestData) throws Exception{
    Socket sock = new Socket("xx.xxx.xxx.xx", 15001);
    StringBuffer responseData = new StringBuffer();
    try{
    //     sock.setSoTimeout(15000);     
    //setup writer
    BufferedWriter out = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream()));
    out.write(requestData);
    //setup reader
    BufferedReader in = new     BufferedReader(new InputStreamReader(sock.getInputStream()));
    int c = 0;
    while (c != -1)
         c = in.read();
         responseData.append((char)c);
    sock.close();
    sock = null;
    }catch(Exception e){
                   System.out.println(e.getMessage());
              }finally{
                   if (sock != null)
                        System.out.println("Closing sock");
                        sock.close();
                        sock = null;
              return responseData.toString();
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    The problem is that the program waits indefinately in the while loop at the in.read()... it doesnot exit. I know i commented out the timeout of
    15 seconds cos that would help me exit... but i dont land up receiving any data and it just gets stuck there.
    I do not have any support from the Suppliers IT people so the last option was to check if i am doing things right... i really dont knw if i am doing sumthing worng here..
    So advise,
    Thanks :)
    manubhai

    Hey guys it works now - thanks for the byte[] idea..
    I do get the response now! however since the supplier does not return a -1 my while loop gets stuck. I have currently put a socket timeout to help break out - any clues to make this better????
    current code:
    try{
    sock.setSoTimeout(15000);     
    ByteArrayOutputStream ba = new ByteArrayOutputStream();
    ba.write(requestData.getBytes(),0,requestData.length());
    ba.writeTo(sock.getOutputStream());
    //setup reader
    BufferedReader in = new     BufferedReader(new InputStreamReader(sock.getInputStream()));
    int c = 0;
    while (c != -1)
    c = in.read();
    responseData.append((char)c);
    sock.close();
    sock = null;
    }catch(Exception e){
         System.out.println(e.getMessage());
    }

  • Desperately need Java network programming help!!!

    I need to make a Distributed File Sharing System (DFSS) using java language. The system should not make use of the central file server. The system should coordinate the concurrent access of files over the distributed environment. Caching may be used to enhance the system performance.
    It is basically network programming.
    Does any one have any idea how to make the DFSS. If you do please help!!!
    thank you in advance for you help
    cheers

    well, you're getting somewhere I guess. My original answer was intentionally vague because your original question was so vague. These fora are no good for asking questions like "how do I implement a distributed file system", they are good for asking things like "the following line(s) of code generate the following condition I didn't expect, rather I expected this condition, could someone tell me what is going on?" or something of similar specificity.
    So you are now asking how to, for instance, check to see if a text file is being shared. This is still too vague, but it's better than "how do I write a file sharing system". If you are feeling particularly industrious, go look at a project JXTA at http://www.jxta.org/ - it's open source, you can look at the code. Of course, if you're brand new, this might not help. In fact, not to discourage you, but if you're that new, this is not the project to be doing.
    Good Luck
    Lee

Maybe you are looking for