go-net-upnp
go-net-upnp is a new open source framework for Go and UPnP™ developers.
UPnP™ is a standard protocol for IoT, the protocols consist of other standard protocols, such as GENA, SSDP, SOAP, HTTPU and HTTP. Therefore you have to understand and implement these protocols to create UPnP™ applications.
go-net-upnp hansles these protocols automatically to support to create UPnP devices and control points quickly.
Installation
The project is released on GitHub. To use go-net-upnp in your projct, run go get
as the following:
go get -u github.com/cybergarage/go-net-upnp/net/upnp
Overview
go-net-upnp provides UPnP control point and device frameworks to implement the control point and any devices.
Control Point Implementation
go-net-upnp supports UPnP control functions. The control point can search UPnP devices in the local netowrk, get the device and service descriptions. and post actions in the service:
import (
"github.com/cybergarage/go-net-upnp/net/upnp"
)
cp := upnp.NewControlPoint()
err := cp.Start()
...
defer cp.Stop()
...
err = cp.SearchRootDevice()
...
for n, dev := range cp.GetRootDevices() {
...
}
The control point can post actions in the service, and get the action response:
service, err := dev.GetServiceByType("xxxx")
...
action, err := service.GetActionByName("xxxx")
...
action.SetArgumentString("xxxx", "xxxx")
err = action.Post()
...
resArg = action.GetArgumentString("xxxx")
Device Implementation
In addition to the control point functions, go-net-upnp supports UPnP device functions to implement any UPnP devices using Go.
To implement UPnP devices, prepare the UPnP device and service descriptions as the following:
import (
"github.com/cybergarage/go-net-upnp/net/upnp"
)
type SampleDevice struct {
*upnp.Device
...
}
func NewSampleDevice() (*SampleDevice, error) {
dev, err := upnp.NewDeviceFromDescription(xxxxDeviceDescription)
...
service, err := dev.GetServiceByType("urn:schemas-upnp-org:service:xxxx:x")
...
err = service.LoadDescriptionBytes([]byte(xxxxServiceDescription))
...
sampleDev := &SampleDevice{
Device: dev,
...
}
return sampleDev, nil
}
Next, implement the control actions in the service descriptions using upnp.ActionListener as the following:
sampleDev, err := NewSampleDevice()
...
sampleDev.ActionListener = sampleDev
...
func (self *SampleDevice) ActionRequestReceived(action *upnp.Action) upnp.Error {
switch action.Name {
case SetTarget:
xxxx, err := action.GetArgumentString(xxxx)
...
err := action.SetArgumentBool(...., ....)
...
return nil
case xxxx
...
}
return upnp.NewErrorFromCode(upnp.ErrorOptionalActionNotImplemented)
}
Next Steps
To know how to implement UPnP control point or devices in more deital using go-net-upnp, please check the sample implementations in the example
directory and the godoc
documentation 🙂
Pingback: Lincoln Georgis
Pingback: Madelyn Monroe Masturbating
Pingback: Lila Lovely
Pingback: MILFCity
Pingback: Cory Chase MILF City
Pingback: premium-domain-broker
Pingback: valentines gift
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: no code robotics
Pingback: robotics case study
Pingback: Click Here
Pingback: Space ROS
Pingback: Click Here
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Reputation Defenders
Pingback: Click Here
Pingback: Reputation Defenders
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: 온라인바카라사이트
Pingback: Click Here
Pingback: grand rapids dentist
Pingback: grand rapids teeth whitening
Pingback: Click Here
Pingback: grand rapids same day crowns
Pingback: Click Here
Pingback: Click Here
Pingback: https://gquery.org/
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Refer and Earn
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: Click Here
Pingback: When do I need antibiotics buy plaquenil 200mg
Pingback: 온라인 슬롯 머신
Pingback: 온라인 슬롯 머신
Pingback: premium-domains
Pingback: buy-premium-domains
Pingback: Is celery good for your liver
Pingback: Is aspirin an antibiotic
Pingback: How do you tell if it's really asthma
Pingback: What are 5 signs of bipolar
Pingback: What is the most common cause of death in heart failure Lisinopril
Pingback: best book for business startup
Pingback: business blogs
Pingback: Do antibiotics do more harm than good Buy Stromectol 3mg tablets | StromectolMAIL
Pingback: Cialis 5 mg canada pharmacy How long does it take to walk 1 mile - ScwCMD
Pingback: vidalista 20 reddit fildena 100 mg amazon
Pingback: Zithromax 250 mg price - What are the 3 most common parasites
Pingback: Ist Kaffee gut fur die Potenz kamagra erfahrung manner
Pingback: Google reviews
Pingback: buy kamagra oral jelly australia
Pingback: Comment on appelle le Premier-ne de la Famille pharmacie en ligne livraison gratuite
Pingback: Quelle est la structure de la famille pharmacie prix pres de Radom
Pingback: How long should a man take to release sperms?
Pingback: Does a girl like you if she plays hard to get?
Pingback: reputation defenders
Pingback: where can i buy stromectol ivermectin What to avoid while on antibiotics?
Pingback: How do you know if he is the right person to marry?
Pingback: Can a erectile dysfunction be cured?
Pingback: curso formula negócio online funciona?
Pingback: Is Deming still relevant?
Pingback: How can I make my wife happy at night?
Pingback: What is a natural antibiotic for bacterial infection ivermectin injection for cattle
Pingback: Quel vin avant de faire l'amour - viagra naturel homme.
Pingback: What foods should you avoid on antibiotics where can i buy ivermectin
Pingback: What do men need in a relationship cenforce 100mg brand
Pingback: Can I take antibiotics before bed ivermectin horse paste
Pingback: Is Carrot an antibiotic
Pingback: Do antibiotics destroy human cells
Pingback: 2023 Books
Pingback: Is it safe to take antibiotics without doctor
Pingback: Can you drink coffee with antibiotic
Pingback: How do I repair my stomach after antibiotics
Pingback: dying
Pingback: memorial
Pingback: Is amoxicillin a strong antibiotic
Pingback: social security number
Pingback: marriage records
Pingback: Is 5 days of antibiotics enough
Pingback: Is 5 days of antibiotics enough
Pingback: IRA Empire
Pingback: What medications should I avoid with a fatty liver stromectol online pharmacy
Pingback: How many antibiotics can I take in a year
Pingback: levitra professional sale
Pingback: How can I reduce the side effects of antibiotics
Pingback: vardenafil 20 mg tablets
Pingback: viagra pills for men
Pingback: Are eggs OK with antibiotics
Pingback: What are the 7 main types of antibiotics
Pingback: What not to eat when you have an infection
Pingback: What kills bacteria inside the body
Pingback: Do antibiotics affect sleep
Pingback: Which antibiotic is safest for liver
Pingback: Treblab - sonos speakers
Pingback: What is the biggest problem with antibiotics
Pingback: football betting mathematical formulas
Pingback: boltune wireless earbuds
Pingback: What time of day is best to start antibiotics buy stromectol 12 mg online?
Pingback: What is the average size of a man order stromectol 3mg
Pingback: Pourquoi s'eloigner de sa famille achat cialis paiement paypal
Pingback: Chirurgie Tunisie
Pingback: wireless bluetooth earbuds
Pingback: National Chi Nan University
Pingback: Do people with asthma have normal oxygen levels ventolin
Pingback: Why is my asthma not getting better ventolin hfa
Pingback: Can walking reverse heart disease what is the drug furosemide used for
Pingback: What is a cheap inhaler for COPD ventolin?
Pingback: Why is Zyvox so expensive | ventolin canada pharmacy
Pingback: Is cardiovascular disease a death sentence generic lasix
Pingback: What happens when someone goes into congestive heart failure chlorthalidone 12.5 mg brand name
Pingback: madridbet
Pingback: meritking
Pingback: madridbet
Pingback: fue scholarships
Pingback: تخصصات ادارة الاعمال
Pingback: ما هو افضل تخصص في ادارة الاعمال
Pingback: دورات ماجستير إدارة الأعمال في مصر
Pingback: Young Arab Voices
Pingback: Political Science
Pingback: رؤية كلية الاقتصاد والعلوم السياسية
Pingback: the best postgrad study in Egypt
Pingback: Department of Pharmacy Practice and Clinical Pharmacy
Pingback: معدل قبول في كلية طب الفم والاسنان
Pingback: Conservative Dentistry Department
Pingback: What is the world ranking of Future university Egypt
Pingback: exams system
Pingback: ريادة الأعمال والابتكار
Pingback: meritking
Pingback: albuterol inhaler - Digital Health Company Introduces Smartphone-Controlled Inhaler for Asthma
Pingback: digital media thecnology department
Pingback: Computer Networking
Pingback: future unversity in egypt news
Pingback: Admission requirements for future university
Pingback: رسوم دراسة ماجستير إدارة الأعمال
Pingback: جراحة الأسنان التعليم
Pingback: grandpashabet
Pingback: خطابات توصية لجامعة المستقبل
Pingback: Application fee for future university
Pingback: Qui sont les 8 familles de la famille viagra generique sans ordonnance en ligne
Pingback: meritking
Pingback: tadalafil teva prix | Comment reconnaitre une famille dysfonctionnelle
Pingback: what does levothyroxine do for the thyroid | Difficulty in staying awake or alert during daytime hours can be a symptom of thyroid deficiency-related lack of energy
Pingback: meritking
Pingback: What is the impact of high levels of triglycerides on heart disease risk | atorvastatin calcium 40mg tab
Pingback: Can too much turmeric cause inflammation?
Pingback: What should you not mix with amoxicillin?
Pingback: madridbet
Pingback: How do you know a man loves you deeply?
Pingback: How can I recover faster from antibiotics?
Pingback: Quelles sont les causes de la famille | viagra pfizer
Pingback: Est-ce que la famille est une valeur | sildenafil femme
Pingback: Quel surnom donne a son amant ou acheter cialis
Pingback: How do you make a man feel loved vidalista 60
Pingback: What is a cute text to wake up too - vidalista black 80 complaints
Pingback: Why do people play hard to get | vidalista
Pingback: Are there any medical conditions that can cause slow speech?
Pingback: Changes in the body's ability to conserve heat in the extremities, resulting in a greater feeling of coldness in the hands and feet, can be associated with thyroid deficiency?
Pingback: Can stress reduction techniques, such as mindfulness or meditation, improve female fertility?
Pingback: What is the impact of hormonal birth control on long-term ovulation patterns?
Pingback: Can specific stress-reducing techniques, such as mindfulness meditation or guided imagery, support female fertility treatment?
Pingback: Can cholesterol levels be reduced by consuming plant sterols or stanols
Pingback: Does cholesterol affect the health of the pancreas
Pingback: Admission Process
Pingback: How long to wait for round 2 - best viagra pills for men
Pingback: كلية إدارة الأعمال في مصر
Pingback: 21st Century workforce development
Pingback: How do you make a man love you only - Priligy cheap car rental
Pingback: Campus visits and interviews for future university
Pingback: Staff Directory Faculty of economics & political science
Pingback: Personal statement for future university
Pingback: ما هي أهمية العلوم السياسية في الاقتصاد
Pingback: خطوات التقديم بالكلية
Pingback: What are the 5 liver super foods?
Pingback: Orthodontic Residency Programs
Pingback: Business school in Egypt
Pingback: دكتور اسنان شاطر
Pingback: Accredited private dental faculty
Pingback: Do antibiotics raise blood pressure?
Pingback: assignments
Pingback: Comment se comporte une mere narcissique
Pingback: public attitudes
Pingback: How to wash and clean nebulizer parts | albuterol inhaler over the counter walmart
Pingback: ماجستير في إدارة الأعمال في FUE
Pingback: Medicinal Chemistry
Pingback: Surgery is a common treatment for early-stage breast cancer - letrozole vs Nolvadex
Pingback: Can mold cause a parasitic infection. duricef antibiotic prescription pill
Pingback: How can you make a man want you | buy vardenafil
Pingback: What kills bacteria for 24 hours | amoxicillin 500 125 mg
Pingback: over the counter cialis pills - What over the counter drugs can be used for managing seasonal allergies
Pingback: buy fildena in the usa - How do you stimulate a man's mind
Pingback: plaquenil price without insurance - Can antibiotics make your body feel weird
Pingback: What are 10 diseases caused by parasites | stromectol 3mg
Pingback: Is a nebulizer better than an inhaler for asthma | albuterol
Pingback: Medications and Vascular Health: Maintaining Strong Circulation - over the counter viagra at walmart
Pingback: How effective is pull out method plaquenil buy online
Pingback: What will make your husband love you more | cialis levitra
Pingback: Why does my body keep getting infections - hydroxychloroquine 200
Pingback: Why do Americans pay more for prescriptions
Pingback: Can antibiotics be used for tonsillitis?
Pingback: Is antibacterial body wash safe ivermectin tablets?
Pingback: Should you rest while on antibiotics stromectol?
Pingback: Is yogurt a probiotic?
Pingback: What kills bacteria for 24 hours stromectol 12mg pills?
Pingback: Do antibiotics weaken immune system long term scaly leg mite treatment ivermectin?
Pingback: How many times a day does a man get hard horse wormers ivermectin?
Pingback: Can antibiotics treat severe acute respiratory syndrome (SARS) stromectol 3 mg tablet?
Pingback: What is the difference between probiotic yogurt and regular yogurt stromectol online brighter tomorrow?
Pingback: What drugs should not be taken with amoxicillin ivermectin for lice?
Pingback: https://www.kooky.domains/post/the-basics-of-web3-domains-what-you-need-to-know
Pingback: https://www.kooky.domains/post/the-benefits-of-using-web3-domains
Pingback: Can antibiotics be used to treat viral infections stromectol?
Pingback: Academic research
Pingback: Business administration and accounting
Pingback: Why do antibiotics make you tired stromectol for scabies dosage?
Pingback: Why is my inhaler not helping symbicort inhaler coupon 2022?
Pingback: What is normal oxygen level by age?
Pingback: What are the most common medications for asthma?
Pingback: What conditions does albuterol sulfate treat albuterol inhaler without dr prescription?
Pingback: What to know about Flovent for your asthma ventolin hfa inhailers cost?
Pingback: تطوير الحياة المهنية
Pingback: humana online pharmacy login?
Pingback: northwestern pharmacy in canada?
Pingback: Is antibacterial body wash safe?
Pingback: Are antibiotics safe for diabetics Zithromax z-pak 250 mg?
Pingback: Can antibiotics be used for gum infections prednisone and Azithromycin?
Pingback: FCIT Programs and Courses
Pingback: System Analysts
Pingback: Why is my period so light??
Pingback: annual welcome party
Pingback: future unversity in egypt news
Pingback: ماجستير في إدارة الأعمال
Pingback: Who is Deming Juran and Crosby cialis walmart pharmacy??
Pingback: افضل جامعة لدراسة ادارة الاعمال
Pingback: How can I know if my sperm is weak??
Pingback: What triggers love in a man??
Pingback: Application fee for future university
Pingback: How many times do men erect at night cialis from canada to usa??
Pingback: What should I eat to become pregnant??
Pingback: What are the top 3 causes of death in men??
Pingback: What makes a man happy in a relationship??
Pingback: meritking
Pingback: Premature ejaculation can be a source of embarrassment for some men, but it is important to remember that it is a common problem and nothing to be ashamed of.?
Pingback: It is important to take Priligy as directed by a healthcare provider and to not exceed the recommended dose.?
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Do antibiotics raise blood pressure??
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Maillot de football
Pingback: Can antibiotics cause anxiety??
Pingback: SEOSolutionVIP Fiverr
Pingback: SEOSolutionVIP Fiverr
Pingback: SEOSolutionVIP Fiverr
Pingback: SEOSolutionVIP Fiverr
Pingback: SEOSolutionVIP Fiverr
Pingback: child porn